Skip to content

Commit

Permalink
Merge pull request #35461 from dimagi/gh/repeat-records/handle-os-error
Browse files Browse the repository at this point in the history
Treat OSErrors as exceptions, not payload failures
  • Loading branch information
gherceg authored Dec 3, 2024
2 parents 2d8e800 + 977baa1 commit 140d56c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions corehq/motech/repeaters/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,9 @@ def fire(self, force_send=False, timing_context=None):
if force_send or not self.succeeded:
try:
self.repeater.fire_for_record(self, timing_context=timing_context)
except OSError as e:
self.handle_exception(str(e))
raise
except Exception as e:
self.handle_payload_error(str(e), traceback_str=traceback.format_exc())
raise
Expand Down

0 comments on commit 140d56c

Please sign in to comment.