diff --git a/telegram/utils/request.py b/telegram/utils/request.py index 25f9a7e3a..5347f9c6b 100644 --- a/telegram/utils/request.py +++ b/telegram/utils/request.py @@ -94,6 +94,8 @@ def post(url, except HTTPError as error: if error.getcode() == 403: raise TelegramError('Unauthorized') + if error.getcode() == 502: + raise TelegramError('Bad Gateway') message = _parse(error.read()) raise TelegramError(message)