Skip to content

Commit

Permalink
Fix a bug and print the exception issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrittervg committed Jan 19, 2024
1 parent 862275f commit 0cd9817
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions foundation_security_advisories/common_cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def try_set_bugzilla_alias(bug: str, cve_id: int):
)
return
# Make sure this is actually a number
bug_number = int(str)
bug_number = int(bug)
# Skip smaller numbers as there is a high chance these aren't any actual bugzilla bug numbers
if bug_number < 100000:
print(
Expand All @@ -381,5 +381,5 @@ def try_set_bugzilla_alias(bug: str, cve_id: int):
headers={"X-BUGZILLA-API-KEY": BUGZILLA_API_KEY},
)
print(f"Assigned alias {cve_id} to bug {bug}")
except:
print(f"Failed to assign alias {cve_id} to bug {bug}")
except Exception as e:
print(f"Failed to assign alias {cve_id} to bug {bug} - {e}")

0 comments on commit 0cd9817

Please sign in to comment.