Skip to content

Commit

Permalink
Add back env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
smallwat3r committed Sep 7, 2023
1 parent 5878efa commit 2c6df85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shhh/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def create_app(env: EnvConfig) -> Flask:

def _get_config(env: EnvConfig) -> type[config.DefaultConfig]:
if env not in set(EnvConfig):
raise RuntimeError(f"{env=} is not supported")
raise RuntimeError(f"{env=} specified in FLASK_ENV is not supported")

Check warning on line 52 in shhh/entrypoint.py

View check run for this annotation

Codecov / codecov/patch

shhh/entrypoint.py#L52

Added line #L52 was not covered by tests

configurations = {
EnvConfig.TESTING: config.TestConfig,
Expand Down

0 comments on commit 2c6df85

Please sign in to comment.