Skip to content

Commit

Permalink
no-status-code-passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-agenta committed Dec 5, 2024
1 parent 0dbae65 commit e4c1b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-cli/agenta/sdk/decorators/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def handle_failure(self, error: Exception):
log.warning(format_exc().strip("\n"))
log.warning("--------------------------------------------------")

status_code = error.status_code if hasattr(error, "status_code") else 500
status_code = 500
message = str(error)
stacktrace = format_exception(error, value=error, tb=error.__traceback__) # type: ignore
detail = {"message": message, "stacktrace": stacktrace}
Expand Down

0 comments on commit e4c1b4e

Please sign in to comment.