Skip to content

Commit

Permalink
added exit on 401
Browse files Browse the repository at this point in the history
  • Loading branch information
emocharnik committed Jan 23, 2024
1 parent fd207af commit c2e3136
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tfc-runs/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def fetch_tfc(route, filters=None, retry_attempt=0):
if status_code not in [200]:
if status_code == 401:
print(f"The token is expired or invalid. {continue_message}")
sys.exit(1)
elif status_code == 429:
if retry_attempt <= 10:
retry_attempt += 1
Expand Down

0 comments on commit c2e3136

Please sign in to comment.