Skip to content

Commit

Permalink
Add in small logging instead of throwing exception (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Jun 26, 2024
1 parent f64166a commit aa255c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ jobs/notebook-report/data/
test_eft_tdi17.txt
ACK.INBOX*
FEEDBACK.INBOX*
*.env
2 changes: 1 addition & 1 deletion pay-queue/src/pay_queue/resources/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def worker():
elif ce.type in [QueueMessageTypes.INCORPORATION.value, QueueMessageTypes.REGISTRATION.value]:
update_temporary_identifier(ce.data)
else:
raise Exception('Invalid queue message type') # pylint: disable=broad-exception-raised
current_app.logger.warning('Invalid queue message type: %s', ce.type)

return {}, HTTPStatus.OK
except Exception: # NOQA # pylint: disable=broad-except
Expand Down

0 comments on commit aa255c9

Please sign in to comment.