mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-30 11:19:24 +02:00
raise NetworkError for HTTP 502 (Bad Gateway)
This commit is contained in:
parent
5b9ec7ff40
commit
d02e656700
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ def _try_except_req(func):
|
|||
if errcode in (401, 403):
|
||||
raise Unauthorized()
|
||||
if errcode == 502:
|
||||
raise TelegramError('Bad Gateway')
|
||||
raise NetworkError('Bad Gateway')
|
||||
|
||||
try:
|
||||
message = _parse(error.read())
|
||||
|
|
Loading…
Add table
Reference in a new issue