From b34ad8da90d809b9d5cb3188de511e734e8dc46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 5 Jan 2024 11:21:12 +0100 Subject: [PATCH] Addon: fix issue where resubmission was blocked after submission error Fix an issue where a submission error would keep the BAT status set to `INVESTIGATING`, which hides the 'Submit to Flamenco' button. In case of an error, it's now properly set to `ABORTED`, which does show that button. --- addon/flamenco/bat/interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/flamenco/bat/interface.py b/addon/flamenco/bat/interface.py index a6f92a8e..d63ae105 100644 --- a/addon/flamenco/bat/interface.py +++ b/addon/flamenco/bat/interface.py @@ -147,7 +147,8 @@ class PackThread(threading.Thread): try: self._run() except BaseException as ex: - log.error("Error packing with BAT: %s", ex) + self._set_bat_status("ABORTED") + log.exception("Error packing with BAT: %s", ex) self.queue.put(MsgException(ex=ex)) finally: with _packer_lock: