Skip to content

Commit

Permalink
Do not duplicate the exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfang committed Nov 4, 2024
1 parent a3b54ff commit 470e775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/activator/activator.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def next_visit_handler() -> tuple[str, int]:
try:
expected_visit = parse_next_visit(flask.request)
except ValueError as e:
_log.exception("Bad Request: %s", e)
_log.exception("Bad Request")
return f"Bad Request: {e}", 400
process_visit(expected_visit)
return "Pipeline executed", 200
Expand Down Expand Up @@ -524,7 +524,7 @@ def process_visit(expected_visit: FannedOutVisit):


def invalid_visit(e: InvalidVisitError) -> tuple[str, int]:
_log.exception("Invalid visit: %s", e)
_log.exception("Invalid visit")
return f"Cannot process visit: {e}.", 422


Expand Down

0 comments on commit 470e775

Please sign in to comment.