test: don't raise RuntimeErrors for no-result warnings

This commit is contained in:
lilydjwg 2019-05-01 17:26:10 +08:00
parent 3481013f78
commit b1856f7426

View File

@ -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']