Skip to content

Commit

Permalink
fix: add additional frontend config files
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Oct 4, 2024
1 parent 71012e0 commit 84bde1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arches/settings_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 84bde1c

Please sign in to comment.