mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Re-raise previous exceptions
This commit is contained in:
parent
be7618988e
commit
2a9b60155b
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,8 @@ def event_loop(request):
|
|||
def raise_on_logger_msg():
|
||||
def proc(logger, method_name, event_dict):
|
||||
if method_name in ('warn', 'error'):
|
||||
if 'exc_info' in event_dict:
|
||||
raise event_dict['exc_info']
|
||||
raise RuntimeError(event_dict['event'])
|
||||
return event_dict['event']
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue