From 977baa1d6eb714b0209fa5a252122a13d46f3d6e Mon Sep 17 00:00:00 2001 From: Graham Herceg Date: Mon, 2 Dec 2024 12:29:17 -0500 Subject: [PATCH] Treat OSErrors as exceptions, not payload failures --- corehq/motech/repeaters/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/corehq/motech/repeaters/models.py b/corehq/motech/repeaters/models.py index 4584219595b2..5b588d42d2b5 100644 --- a/corehq/motech/repeaters/models.py +++ b/corehq/motech/repeaters/models.py @@ -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