Skip to content

Commit

Permalink
name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jan 21, 2024
1 parent 49eb34f commit 33cd1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modflow_devtools/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def call():
return _timed


def get_env(key: str, default: object = None) -> Optional[object]:
def get_env(name: str, default: object = None) -> Optional[object]:
"""
Try to parse the given environment variable as the type of the given
default value, if one is provided, otherwise any type is acceptable.
Expand All @@ -477,7 +477,7 @@ def get_env(key: str, default: object = None) -> Optional[object]:
otherwise the default value if the environment variable is not set.
"""
try:
v = environ.get(key)
v = environ.get(name)
if isinstance(default, bool):
v = v.lower().title()
v = literal_eval(v)
Expand Down

0 comments on commit 33cd1de

Please sign in to comment.