Skip to content

Commit

Permalink
Add IndexError
Browse files Browse the repository at this point in the history
Signed-off-by: Elad Ben Aharon <[email protected]>
  • Loading branch information
ebenahar committed Feb 12, 2025
1 parent f1d8344 commit 0686d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocs_ci/ocs/cluster_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def get_query(self, query, mute_logs=False):
query, str(timestamp(now())), mute_logs=mute_logs, log_debug=True
)[0]["value"][1]
)
except requests.exceptions.RequestException as e:
except (requests.exceptions.RequestException, IndexError) as e:
logger.info(
f"Encountered error: {e}. Refreshing connection and retrying..."
)
Expand Down

0 comments on commit 0686d04

Please sign in to comment.