Skip to content

Commit

Permalink
Merge pull request #213 from lsst-dm/tickets/DM-47333
Browse files Browse the repository at this point in the history
DM-47333: Logger.exception() missing 1 required positional argument
  • Loading branch information
hsinfang authored Nov 1, 2024
2 parents 94cc969 + 3bd2fea commit cda43e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/activator/activator.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ def next_visit_handler() -> tuple[str, int]:
try:
try:
expected_visit = parse_next_visit(flask.request)
except ValueError as msg:
_log.exception()
return f"Bad Request: {msg}", 400
except ValueError as e:
_log.exception("Bad Request: %s", e)
return f"Bad Request: {e}", 400
process_visit(expected_visit)
return "Pipeline executed", 200
except GracefulShutdownInterrupt:
Expand Down Expand Up @@ -524,7 +524,7 @@ def process_visit(expected_visit: FannedOutVisit):


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


Expand Down

0 comments on commit cda43e4

Please sign in to comment.