Skip to content

Commit

Permalink
BLD: handle server down for maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
AvishaiW committed Sep 13, 2018
1 parent 902bb81 commit 3e0cd93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions catalyst/utils/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def handle_response(response, mode):
"to wrong arguments given to the server.\n" +
response.content.decode('utf-8') + '\n' +
EXCEPTION_LOG)
elif response.status_code == 202:
raise Exception("The server is under maintenance. "
"please try again in a few minutes")
else: # if the run was successful
if mode == BACKTEST:
algo_id = response.json()['algo_id']
Expand Down

0 comments on commit 3e0cd93

Please sign in to comment.