We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c40df2 commit 44e549cCopy full SHA for 44e549c
1 file changed
atlassian/jira.py
@@ -367,6 +367,7 @@ def get_attachment_content(self, attachment_id: T_id) -> bytes:
367
:return: content as bytes
368
"""
369
attachment_info = self.get_attachment(attachment_id)
370
+ # Type check for mypy. If attachment is not found, or unavailable, it would raise HTTPError anyways.
371
if attachment_info is None:
372
return b""
373
url = attachment_info["content"]
0 commit comments