Skip to content

Commit 41e5d02

Browse files
committed
Added a first full attempt at error handling and refactoring of python scripts to make them more human readable.
1 parent f879a9f commit 41e5d02

File tree

6 files changed

+263
-155
lines changed

6 files changed

+263
-155
lines changed

FinaliseWebpages.py

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import glob
5+
import sys
56
from common import CommonWebPageFuncs
67

78
# Get the logger from CommonWebPageFuncs
@@ -48,5 +49,7 @@
4849

4950
except FileNotFoundError as e:
5051
logger.error(f"An unexpected FileNotFoundError occured: {e}")
52+
sys.exit(1)
5153
except Exception as e:
5254
logger.error(f"An unexpected error occurred: {e}")
55+
sys.exit(1)

FinaliseWebpages.sh

-75
This file was deleted.

0 commit comments

Comments
 (0)