Skip to content

Commit

Permalink
reformat exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
perry2of5 committed Sep 4, 2024
1 parent f9e015a commit 26c6ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/providers/microsoft/azure/hooks/asb.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ def _process_message(
else:
try:
message_callback(msg)
receiver.complete_message(msg)
except Exception as e:
self.log.error("Error processing message: %s", e)
receiver.abandon_message(msg)
raise e
else:
receiver.complete_message(msg)

0 comments on commit 26c6ede

Please sign in to comment.