X Tutup
Skip to content

Commit e706257

Browse files
committed
Keeps backwards compatibility to BadRequest python-telegram-bot#302
1 parent 1e39882 commit e706257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telegram/error.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ def __init__(self):
7373
super(InvalidToken, self).__init__('Invalid token')
7474

7575

76-
class BadRequest(TelegramError):
76+
class NetworkError(TelegramError):
7777
pass
7878

7979

80-
class NetworkError(TelegramError):
80+
class BadRequest(TelegramError):
8181
pass
8282

8383

0 commit comments

Comments
 (0)
X Tutup