diff --git a/.coveragerc b/.coveragerc index bc273fec..ed85934e 100644 --- a/.coveragerc +++ b/.coveragerc @@ -20,6 +20,7 @@ exclude_lines = if 0: if __name__ == .__main__.: except ImportError: + except PermissionError: except (ImproperlyConfigured, OperationalError): except (ImproperlyConfigured, AttributeError): omit = src/evaluation_system/tests/*,./src/evaluation_system/fuse/*,./src/evaluation_system/external/*,./src/freva/cli/__main__.py diff --git a/docs/source/whats-new.rst b/docs/source/whats-new.rst index 69151b7e..785eee73 100644 --- a/docs/source/whats-new.rst +++ b/docs/source/whats-new.rst @@ -5,6 +5,19 @@ What's new :maxdepth: 0 :titlesonly: +v2502.0.1 +~~~~~~~~~ + +Bug fixes ++++++++++ +- Catch PermissionError when user config dir does not exist. + +Documentations +++++++++++++++ +- Added mulit-version queries. + + + v2502.0.0 ~~~~~~~~~ diff --git a/src/evaluation_system/__init__.py b/src/evaluation_system/__init__.py index 2de1784d..bda09b74 100644 --- a/src/evaluation_system/__init__.py +++ b/src/evaluation_system/__init__.py @@ -38,7 +38,7 @@ ) -__version__ = "2502.0.0" +__version__ = "2502.0.1" if __name__ == "__main__": print(__version__) diff --git a/src/evaluation_system/misc/config.py b/src/evaluation_system/misc/config.py index e20c9683..e5ccd843 100644 --- a/src/evaluation_system/misc/config.py +++ b/src/evaluation_system/misc/config.py @@ -40,8 +40,11 @@ USER_CONFIG_FILE_LOC = osp.join( appdirs.user_config_dir(), "freva", "evaluation_system.conf" ) -if Path(USER_CONFIG_FILE_LOC).exists(): - CONFIG_FILE = _ConfigWrapper(USER_CONFIG_FILE_LOC) +try: + if Path(USER_CONFIG_FILE_LOC).exists(): + CONFIG_FILE = _ConfigWrapper(USER_CONFIG_FILE_LOC) +except PermissionError: + pass EVALUATION_SYSTEM_HOME = (os.sep).join(osp.abspath(__file__).split(osp.sep)[:-4]) SPECIAL_VARIABLES = TemplateDict(EVALUATION_SYSTEM_HOME=EVALUATION_SYSTEM_HOME) _PUBLIC_KEY_DIR = Path(CONFIG_FILE).parent