Skip to content

Commit

Permalink
ensure scope is a proper env var name prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
christophevg committed May 9, 2024
1 parent f04c29b commit 5b4590c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hosted_flasks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.0.11"
__version__ = "0.0.12"

# ruff: noqa: E402

Expand Down
2 changes: 1 addition & 1 deletion hosted_flasks/monkeypatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Environment(UserDict):
def __init__(self, scope, debug=False):
self._scope = scope.upper()
self._scope = scope.upper().replace("-", "_") # ensure proper env var name
self._debug = debug
super().__init__()
# explicitly use the original __setitem__, else we might end up with double
Expand Down

0 comments on commit 5b4590c

Please sign in to comment.