X Tutup
Skip to content

Commit ad21165

Browse files
committed
Merge branch 'master' into dispatcher-rework
Conflicts: README.rst
2 parents 3a0eb58 + cb99341 commit ad21165

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

telegram/utils/request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def decorator(*args, **kwargs):
106106
except HTTPException as error:
107107
raise NetworkError('HTTPException: {0!r}'.format(error))
108108

109+
except socket.error as error:
110+
raise NetworkError('socket.error: {0!r}'.format(error))
111+
109112
return decorator
110113

111114

0 commit comments

Comments
 (0)
X Tutup