Skip to content

Commit

Permalink
Update how database env variables are consumed
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Sep 16, 2024
1 parent b97b9c4 commit 9e631bb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions macrostrat_db_insertion/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ def load_config():
# Read in the environment variable
env_variable_name = ENV_VAR_PREFIX + "_" + required_name
env_variable_value = os.environ.get(env_variable_name)
if env_variable_value is None:
raise Exception("Environment variable " + env_variable_name + " is not set")
config_values[required_name] = env_variable_value

return config_values
Expand Down

0 comments on commit 9e631bb

Please sign in to comment.