mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-20 15:54:52 +01:00
commit
06ec465c5f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue