Skip to content

Commit

Permalink
bug: Don't crash if issue list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lhh committed Mar 26, 2024
1 parent 79936ea commit bd96875
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jirate/jboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ def issues(self, issue_list, verbose=False):
Returns:
list of jira.resources.Issue or None
"""
if not issue_list:
return []
if isinstance(issue_list, Issue):
return issue_list
issues = list_or_splitstr(issue_list)
Expand Down

0 comments on commit bd96875

Please sign in to comment.