Skip to content

Commit

Permalink
fix: uncaught error not logged
Browse files Browse the repository at this point in the history
Signed-off-by: Rongrong <[email protected]>
  • Loading branch information
Rongronggg9 committed Nov 3, 2023
1 parent e3316ef commit 4df8050
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ def main():
except (KeyboardInterrupt, SystemExit) as e:
logger.error(f'Received {type(e).__name__}, exiting...', exc_info=e)
exit_code = e.code if isinstance(e, SystemExit) and e.code is not None else 0
except Exception as e:
logger.critical('Uncaught error:', exc_info=e)
exit_code = 99
finally:
try:
if getattr(signal, 'SIGALRM', None):
Expand Down

0 comments on commit 4df8050

Please sign in to comment.