diff options
author | Ben Sima <ben@bsima.me> | 2020-04-01 17:45:16 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-04-01 18:34:27 -0700 |
commit | a387ebed24a38d2bbbea4a9948440c3ac2dda18a (patch) | |
tree | 1256b64b34c6460b6ce8ecc89baf70790d681c61 /Run | |
parent | 67303d8890806a817e5eef34582900f37d5c03eb (diff) |
Don't print stacktraces for a few of these errors
Diffstat (limited to 'Run')
-rwxr-xr-x | Run/Que/client.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Run/Que/client.py b/Run/Que/client.py index 8058a05..8d90e7a 100755 --- a/Run/Que/client.py +++ b/Run/Que/client.py @@ -93,3 +93,9 @@ if __name__ == "__main__": except KeyboardInterrupt: print("Interrupted") sys.exit(0) + except urllib.error.HTTPError as e: + print(e) + sys.exit(1) + except http.client.IncompleteRead as e: + print(e) + sys.exit(1) |