From a387ebed24a38d2bbbea4a9948440c3ac2dda18a Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 1 Apr 2020 17:45:16 -0700 Subject: Don't print stacktraces for a few of these errors --- Run/Que/client.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Run/Que') 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) -- cgit v1.2.3