From d94c07a57ea167c947284f456a5bd0f8464e427c Mon Sep 17 00:00:00 2001 From: Stratos Thivaios Date: Sun, 5 May 2024 23:11:57 +0300 Subject: [PATCH] initial commit --- .idea/imgal.iml | 2 +- .idea/misc.xml | 2 +- builder/imgal-build.py | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.idea/imgal.iml b/.idea/imgal.iml index 5a3519e..0b99b66 100644 --- a/.idea/imgal.iml +++ b/.idea/imgal.iml @@ -7,7 +7,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 28e58b6..c86d9c9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/builder/imgal-build.py b/builder/imgal-build.py index c9280ff..8bf3c10 100644 --- a/builder/imgal-build.py +++ b/builder/imgal-build.py @@ -115,7 +115,10 @@ def moveFullSize(directory, file_names): picsList = os.listdir(directory) -createPage(picsList) -createThumbnails(picsList, directory) -createViewerSize(picsList, directory) +try: + createPage(picsList) + createThumbnails(picsList, directory) + createViewerSize(picsList, directory) +except Exception as e: + print("Error occurred. Bypassing image. Details : "+e) moveFullSize(directory, picsList) \ No newline at end of file