Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
return_error
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Feb 9, 2023
1 parent 066ac4d commit 965d6ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def bridge(self, interval, api_key, kai_name, kai_url, cluster, priority_usernam
current_id = None
current_payload = None
current_generation = None
return_error = None
loop_retry = 0
continue
# By default, we don't want to be annoucing the prompt send from the Horde to the terminal
Expand Down Expand Up @@ -197,6 +198,7 @@ def bridge(self, interval, api_key, kai_name, kai_url, cluster, priority_usernam
current_id = None
current_payload = None
current_generation = None
return_error = None
loop_retry = 0
except (urllib3.exceptions.MaxRetryError, requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
error.warning(f"Server {cluster} unavailable during submit. Waiting 10 seconds...")
Expand Down

0 comments on commit 965d6ce

Please sign in to comment.