Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Waldorf committed Feb 5, 2025
1 parent 056b438 commit 8b5be61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion universql/protocol/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def perform_query(self, alternative_executor: Executor, raw_query, ast=None) ->
except Exception as e:
print(f"There was an issue executing this query: {e}. Trying again.")
query_attempt += 1
if query_attempt >= max_attempts:
if query_attempt >= max_query_attempts:
raise e # Re-raise the last exception if all attempts fail
time.sleep(query_attempt * 1.0/2)
if new_locations is not None:
Expand Down

0 comments on commit 8b5be61

Please sign in to comment.