mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
added exception to log
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user