Skip to content

Commit

Permalink
fix: improve handling of Bugzilla response
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Oct 2, 2024
1 parent 21cd8ce commit bc85b34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grizzly/common/bugzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ def _fetch_attachments(self) -> None:
if (
attachment.is_obsolete
or attachment.content_type == "text/x-phabricator-request"
or not attachment.file_name
or attachment.file_name.split(".")[-1] in IGNORE_EXTS
):
continue
try:
data = b64decode(attachment.data)
data = b64decode(attachment.data or "")
except binascii.Error as exc:
LOG.warning(
"Failed to decode attachment: %r (%s)", attachment.file_name, exc
Expand Down

0 comments on commit bc85b34

Please sign in to comment.