Merge pull request #237 from tsnoam/master

request: catch socket.error
This commit is contained in:
Jannes Höke 2016-04-16 18:49:21 +02:00
commit 06ec465c5f

View file

@ -106,6 +106,9 @@ def _try_except_req(func):
except HTTPException as error:
raise NetworkError('HTTPException: {0!r}'.format(error))
except socket.error as error:
raise NetworkError('socket.error: {0!r}'.format(error))
return decorator