added exception to log

This commit is contained in:
2025-10-27 15:05:10 +01:00
committed by Florian Greistorfer
parent 57b6b56388
commit cfe1585c39

View File

@@ -230,6 +230,9 @@ def main(args) -> None:
dynamic_ncols=True,
):
pass
except Exception as e:
logger.critical("an unhandled exception occurred: %s", str(e), exc_info=True)
print(f"An unhandled exception occurred: {str(e)}")
finally:
os.remove(LOCKFILE)
logger.info("finished builder", extra={"version": VERSION})