Skip to content

Commit

Permalink
Merge pull request #137 from perlpunk/fix-unpack
Browse files Browse the repository at this point in the history
Fix unpacking of exception
  • Loading branch information
okurz committed Sep 20, 2023
2 parents 83c708b + 4f1283c commit a8f6bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openqabot/openqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_job_comments(self, job_id: int):
)
ret = list(map(lambda c: {"text": c.get("text", "")}, ret))
except Exception as e:
(method, url, status_code) = e.args
(method, url, status_code, *other) = e.args
if status_code == 404:
self.handle_job_not_found(job_id)
else:
Expand Down

0 comments on commit a8f6bec

Please sign in to comment.