diff options
author | Alexandre Flament <alex@al-f.net> | 2020-12-17 09:57:57 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-12-20 09:46:53 +0100 |
commit | 3f8ebf70b193f4391a01d7412324a10e4faa56a2 (patch) | |
tree | d65eb74cbe46be6813afdf9907de5941cbbb9a4d /searx/settings_loader.py | |
parent | eb33ae6893ef9d5081b1ddd1119e7047642a40af (diff) | |
download | searxng-3f8ebf70b193f4391a01d7412324a10e4faa56a2.tar.gz searxng-3f8ebf70b193f4391a01d7412324a10e4faa56a2.zip |
[fix] pylint: use "raise ... from ..."
Diffstat (limited to 'searx/settings_loader.py')
-rw-r--r-- | searx/settings_loader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/settings_loader.py b/searx/settings_loader.py index 5dbeb4a9a..e7126aa89 100644 --- a/searx/settings_loader.py +++ b/searx/settings_loader.py @@ -24,9 +24,9 @@ def load_yaml(file_name): with open(file_name, 'r', encoding='utf-8') as settings_yaml: return yaml.safe_load(settings_yaml) except IOError as e: - raise SearxSettingsException(e, file_name) + raise SearxSettingsException(e, file_name) from e except yaml.YAMLError as e: - raise SearxSettingsException(e, file_name) + raise SearxSettingsException(e, file_name) from e def get_default_settings_path(): |