summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2021-05-20 09:24:40 -0700
committerJoseph Henry <[email protected]>2021-05-20 09:24:40 -0700
commite7eaeadaeeee31b30ae4d8e9d0377d839366f392 (patch)
treef5a2afdff4cda21e154f9869d2fe781bd5c41cd3 /src
parenta08417cb7d8c79a9dc29219711fcff0f9ddf0a08 (diff)
Remove unnecessary return statements in Python sockets error handler
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bindings/python/sockets.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/bindings/python/sockets.py b/src/bindings/python/sockets.py
index 5f51591..2bd6fc0 100755
--- a/src/bindings/python/sockets.py
+++ b/src/bindings/python/sockets.py
@@ -8,25 +8,18 @@ def handle_error(err):
if err == libzt.ZTS_ERR_SOCKET:
if errno() == libzt.ZTS_EAGAIN:
raise BlockingIOError()
- return
if errno() == libzt.ZTS_EINPROGRESS:
raise BlockingIOError()
- return
if errno() == libzt.ZTS_EALREADY:
raise BlockingIOError()
- return
if errno() == libzt.ZTS_ECONNABORTED:
raise ConnectionAbortedError()
- return
if errno() == libzt.ZTS_ECONNREFUSED:
raise ConnectionRefusedError()
- return
if errno() == libzt.ZTS_ECONNRESET:
raise ConnectionResetError()
- return
if errno() == libzt.ZTS_ETIMEDOUT:
raise TimeoutError()
- return
raise Exception("ZTS_ERR_SOCKET (" + str(err) + ")")
if err == libzt.ZTS_ERR_SERVICE:
raise Exception("ZTS_ERR_SERVICE (" + str(err) + ")")