From 37ed566204119e617378b54571ac3a4d8da7c87e Mon Sep 17 00:00:00 2001 From: antarcticrainforest Date: Mon, 4 Nov 2024 09:14:28 +0100 Subject: [PATCH] Fix linting issues. --- src/freva/utils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/freva/utils.py b/src/freva/utils.py index 725b471f..20f2726a 100644 --- a/src/freva/utils.py +++ b/src/freva/utils.py @@ -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 @@ -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()