From e8b855d37abc4174c5f06da3d1cc6cbfc3243204 Mon Sep 17 00:00:00 2001 From: Philip Trauner Date: Sun, 11 Sep 2016 20:31:48 +0200 Subject: [PATCH] Removed error handling function used by old networking --- Shared/Utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Shared/Utils.py b/Shared/Utils.py index 49f5a9c..0dbcc40 100644 --- a/Shared/Utils.py +++ b/Shared/Utils.py @@ -6,13 +6,6 @@ def capture_trace(): exc_type, exc_value, exc_traceback = exc_info() print_exception(exc_type, exc_value, exc_traceback) -def is_socket_related_error(error): - if type(error) not in (BrokenPipeError, ConnectionResetError, OSError): - return False - if type(error) is OSError: - if str(error) not in ("Connection closed", "[Errno 9] Bad file descriptor"): - return False - return True def is_wallaby(): return "3.18.21-custom" in platform.uname().release \ No newline at end of file