diff options
author | Martin Fischer <martin@push-f.com> | 2022-01-24 09:46:32 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-27 22:07:12 +0100 |
commit | 640c404844e3b06482402c53fdce8a2295772d42 (patch) | |
tree | 773c7f309634d29e4260b96f07840cea4fee19b3 /searx/exceptions.py | |
parent | 8aef66b365b5faeb42362e2da7fdf93517136d88 (diff) | |
download | searxng-640c404844e3b06482402c53fdce8a2295772d42.tar.gz searxng-640c404844e3b06482402c53fdce8a2295772d42.zip |
[pyright:strict] searx.search.checker.background
Diffstat (limited to 'searx/exceptions.py')
-rw-r--r-- | searx/exceptions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/exceptions.py b/searx/exceptions.py index 1b106d40c..43c8bab40 100644 --- a/searx/exceptions.py +++ b/searx/exceptions.py @@ -16,6 +16,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >. ''' +from typing import Optional, Union + + class SearxException(Exception): pass @@ -35,7 +38,7 @@ class SearxParameterException(SearxException): class SearxSettingsException(SearxException): """Error while loading the settings""" - def __init__(self, message, filename): + def __init__(self, message: Union[str, Exception], filename: Optional[str]): super().__init__(message) self.message = message self.filename = filename |