mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-31 16:40:53 +01:00
utils.request: provide HTTP error code with unknown errors
This commit is contained in:
parent
17dae68654
commit
bc2679f2ae
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ def _try_except_req(func):
|
|||
try:
|
||||
message = _parse(error.read())
|
||||
except ValueError:
|
||||
message = 'Unknown HTTPError'
|
||||
message = 'Unknown HTTPError {0}'.format(error.getcode())
|
||||
|
||||
raise TelegramError(message)
|
||||
except (SSLError, socket.timeout) as error:
|
||||
|
|
Loading…
Reference in a new issue