Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
Co-authored-by: Filippo Luca Ferretti <[email protected]>
  • Loading branch information
diegoferigo and flferretti authored May 17, 2024
1 parent 42a3430 commit eac4c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def get_default_logging_level(env_var: str) -> logging.LoggingLevel:
return logging.LoggingLevel[os.environ[env_var].upper()]

# Raise if the environment variable is set but the logging level is invalid.
except AttributeError:
except AttributeError as exc:
msg = f"Invalid logging level defined in {env_var}: '{os.environ[env_var]}'"
raise ValueError(msg)
raise ValueError(msg) from exc

# If the environment variable is not set, return the logging level depending
# on the installation mode.
Expand Down

0 comments on commit eac4c6a

Please sign in to comment.