From 84bde1cdc3cb06f0bc603d9398344db698bc7add Mon Sep 17 00:00:00 2001 From: Phil Weir Date: Fri, 4 Oct 2024 18:41:48 +0100 Subject: [PATCH] fix: add additional frontend config files --- arches/settings_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arches/settings_utils.py b/arches/settings_utils.py index 829712468b6..1ea447215f3 100644 --- a/arches/settings_utils.py +++ b/arches/settings_utils.py @@ -176,7 +176,7 @@ def generate_frontend_configuration(): ) as file: if json.load(file) != frontend_configuration_settings_data: raise RuntimeError("App frontend configuration exists but does not match") - except IOError: + except (IOError, FileNotFoundError): with open( frontend_configuration_settings_path, "w", @@ -226,7 +226,7 @@ def generate_frontend_configuration(): with open(tsconfig_path, "r") as file: if json.load(file) != tsconfig_paths_data: raise RuntimeError("App frontend configuration exists but does not match") - except IOError: + except (IOError, FileNotFoundError): with open(tsconfig_path, "w") as file: json.dump(tsconfig_paths_data, file, indent=4)