mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-20 15:54:52 +01:00
swap valueerror for runtimeerror
This commit is contained in:
parent
def6755935
commit
6b2c229a49
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ class TestUpdater:
|
||||||
|
|
||||||
# case inf loop protection
|
# case inf loop protection
|
||||||
if self.update_id > 10:
|
if self.update_id > 10:
|
||||||
raise ValueError
|
raise RuntimeError('Looks like we are hitting an infinity loop. Stopping.')
|
||||||
|
|
||||||
# case 2
|
# case 2
|
||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
|
|
Loading…
Reference in a new issue