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.
This commit is contained in:
Sybren A. Stüvel 2024-01-05 11:21:12 +01:00
parent 1a4e0c36e4
commit b34ad8da90

@ -147,7 +147,8 @@ class PackThread(threading.Thread):
try: try:
self._run() self._run()
except BaseException as ex: 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)) self.queue.put(MsgException(ex=ex))
finally: finally:
with _packer_lock: with _packer_lock: