mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-12 10:34:17 +00:00
do not raise if the app cannot load an env specific config file w/ burnettk
This commit is contained in:
parent
3e43a4ff7d
commit
a4ceb982ea
@ -68,9 +68,9 @@ def load_config_file(app: Flask, env_config_module: str) -> None:
|
||||
try:
|
||||
app.config.from_object(env_config_module)
|
||||
print(f"loaded config: {env_config_module}")
|
||||
except ImportStringError as exception:
|
||||
if os.environ.get("SPIFFWORKFLOW_BACKEND_TERRAFORM_DEPLOYED_ENVIRONMENT") != "true":
|
||||
raise ModuleNotFoundError(f"Cannot find config module: {env_config_module}") from exception
|
||||
except ImportStringError:
|
||||
# ignore this error
|
||||
pass
|
||||
|
||||
|
||||
def _set_up_tenant_specific_fields_as_list_of_strings(app: Flask) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user