Skip to content

Commit

Permalink
Fix linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Nov 4, 2024
1 parent fa5569d commit 37ed566
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/freva/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def wrapper(*args: Any, **kwargs: Any) -> Any:
return func(*args, **kwargs)
except (ImproperlyConfigured, OperationalError): # prgama: no cover
# Wrap django error in a more informative exception
msg = (
"Your freva instance doesn't seem to be properly configured: "
)
msg = "Your freva instance doesn't seem to be properly configured: "
raise ConfigurationException(
msg + wrong_config_msg[logger.is_cli]
) from None
Expand Down Expand Up @@ -464,9 +462,7 @@ def __exit__(
) -> None:
os.environ.pop("EVALUATION_SYSTEM_CONFIG_FILE")
if self._original_config_env:
os.environ["EVALUATION_SYSTEM_CONFIG_FILE"] = (
self._original_config_env
)
os.environ["EVALUATION_SYSTEM_CONFIG_FILE"] = self._original_config_env
db_settings.reconfigure_django(self._original_config_env)
try:
pm.reload_plugins()
Expand Down

0 comments on commit 37ed566

Please sign in to comment.