Removed error handling function used by old networking
This commit is contained in:
parent
bee3050b95
commit
e8b855d37a
1 changed files with 0 additions and 7 deletions
|
@ -6,13 +6,6 @@ def capture_trace():
|
||||||
exc_type, exc_value, exc_traceback = exc_info()
|
exc_type, exc_value, exc_traceback = exc_info()
|
||||||
print_exception(exc_type, exc_value, exc_traceback)
|
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():
|
def is_wallaby():
|
||||||
return "3.18.21-custom" in platform.uname().release
|
return "3.18.21-custom" in platform.uname().release
|
Reference in a new issue