Skip to content

Commit

Permalink
Don't fail if zero results found
Browse files Browse the repository at this point in the history
This was added as a protection against misconfiguration, assuming that
if zero issues were found, then there must be a typo in the config.

It's actually a legitimate scenario though - we may have a project that
for a time will have zero issues open, but on which we don't want the
tool to fail hard.
  • Loading branch information
ralphbean committed Apr 26, 2024
1 parent f6616d1 commit 5386b8c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/utils/jira.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sys

import dogpile.cache
import jira

Expand Down Expand Up @@ -27,7 +25,6 @@ def query_issues(
results = _search(jira_client, query, verbose=True)
if not results:
print(f"No {issue_type} found via query: {query}")
sys.exit(1)
return results


Expand All @@ -50,7 +47,6 @@ def query_child_issues(
results = _search(jira_client, query, verbose=True)
if not results:
print(f"No {issue_type} found via query: {query}")
sys.exit(1)
return results


Expand Down

0 comments on commit 5386b8c

Please sign in to comment.