Skip to content

Commit

Permalink
🐛 fix execpthook
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzLuke96 committed Jul 29, 2024
1 parent ff4991e commit a9c9d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/api/api_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ def process_api_args(args: argparse.Namespace, app: FastAPI):
if compile:
logger.info("Model compile is enabled")

threading.excepthook = lambda exctype, value, tb: logger.exception(
"Uncaught exception", exc_info=(exctype, value, tb)
threading.excepthook = lambda exctype: logger.exception(
"Uncaught exception", exc_info=(exctype)
)

0 comments on commit a9c9d16

Please sign in to comment.