Skip to content

Commit

Permalink
Merge pull request #51 from mit-submit/main
Browse files Browse the repository at this point in the history
allow for a nonetype description
  • Loading branch information
julius-heitkoetter authored Sep 21, 2023
2 parents e945e58 + b81f7e0 commit 98e1f73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion A2rchi/utils/mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ def _find_issue_id(self, description):
Select all messages in the mailbx and process them.
"""
issue_id = 0
index = description.find('ISSUE_ID:')
if description is not None:
index = description.find('ISSUE_ID:')
else:
index = -1

if index > 0:
issue_id = int(description[index + ISSUE_ID_OFFSET:].split()[0])
print(f" ISSUE_ID: {issue_id}")
Expand Down

0 comments on commit 98e1f73

Please sign in to comment.