Skip to content

Commit c3b7be4

Browse files
committed
Workaround python-gitlab bug
python-gitlab/python-gitlab#389 means that python-gitlab will raise an exception if save() is called with no parameters. This sends a redundant parameter as a workaround.
1 parent a5ff00c commit c3b7be4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bztogl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ def analyze_bugzilla_comment(comment, attachment_metadata):
416416
break
417417
raise e
418418

419-
issue.save()
419+
# Workaround python-gitlab bug by providing redundant state_event
420+
# https://github.com/python-gitlab/python-gitlab/pull/389
421+
issue.save(state_event='reopen')
420422

421423
print("New GitLab issue created from bugzilla bug "
422424
"{}: {}".format(bzbug.id, issue.web_url))

0 commit comments

Comments
 (0)