Skip to content

Commit

Permalink
[python] Avoid nested logging exception (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored May 27, 2024
1 parent 4907281 commit e78aa57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/python/setup/djl_python_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def run_server(self):
outputs = Output().error(
f"Invalid output type: {type(outputs)}")
except Exception as e:
logging.exception("Failed invoke service.invoke_handler()", e)
logging.exception("Failed invoke service.invoke_handler()")
if type(e).__name__ == "OutOfMemoryError" or type(
e).__name__ == "MemoryError":
outputs = Output(code=507, message=str(e))
Expand Down

0 comments on commit e78aa57

Please sign in to comment.