Skip to content

Commit

Permalink
Merge pull request #977 from JoshuaOloton/fix/status-page-script
Browse files Browse the repository at this point in the history
fix: status page script
  • Loading branch information
joboy-dev authored Aug 25, 2024
2 parents dc8cc2a + fca14ed commit ef004ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_api_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def parse_and_post_results():
status_code = item.get('response', {}).get('code')
response_time = item.get('item', {}).get('responseTime')

if status_code >= 500:
if isinstance(status_code, int) and status_code >= 500:
status = 'Down'
details = item.get('response', {}).get('status', 'No status available')
else:
Expand Down

0 comments on commit ef004ea

Please sign in to comment.