mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 16:29:17 +02:00
[pyright:strict] searx.search.checker.background
This commit is contained in:
parent
8aef66b365
commit
640c404844
4 changed files with 73 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue