- Notifications
You must be signed in to change notification settings - Fork673
Closed
Description
Description of the problem, including code/CLI snippet
Traceback (most recent call last):--File "/var/task/tagbotgitlab/tagbot.py", line 31, in handlerstatus, msg = 200, handle_event(json.loads(evt.get("body", "{}")))File "/var/task/tagbotgitlab/tagbot.py", line 53, in handle_eventreturn handle_open(payload)File "/var/task/tagbotgitlab/tagbot.py", line 68, in handle_openmr = p.mergerequests.get(mr_id, lazy=True)File "/var/task/gitlab/exceptions.py", line 279, in wrapped_freturn f(*args, **kwargs)File "/var/task/gitlab/mixins.py", line 46, in getid = utils.clean_str_id(id)File "/var/task/gitlab/utils.py", line 51, in clean_str_idreturn id.replace("/", "%2F").replace("#", "%23")AttributeError: 'NoneType' object has no attribute 'replace'STATUS : 500ERROR : Runtime error
Expected Behavior
p.mergerequests.get(mr_id, lazy=True) should return an MR instead of throwing an error
Actual Behavior
AttributeError: 'NoneType' object has no attribute 'replace'
Specifications
- python-gitlab version: 2.5.0
- API version you are using (v3/v4): v4
- Gitlab server version (or gitlab.com): 13.11.1-ee
Metadata
Metadata
Assignees
Labels
No labels