mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-01-30 01:52:47 +00:00
test: don't raise RuntimeErrors for no-result warnings
This commit is contained in:
parent
3481013f78
commit
b1856f7426
@ -65,7 +65,7 @@ def raise_on_logger_msg():
|
||||
if method_name in ('warning', 'error'):
|
||||
if 'exc_info' in event_dict:
|
||||
raise event_dict['exc_info']
|
||||
if not event_dict['event'].startswith('rate limited'):
|
||||
if not event_dict['event'].startswith(('rate limited', 'no-result')):
|
||||
raise RuntimeError(event_dict['event'])
|
||||
return event_dict['event']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user