Exception to store and/or raise a message from a schema issue.
Definition at line 43 of file config.py.
◆ __init__()
searx.botdetection.config.SchemaIssue.__init__ |
( |
| self, |
|
|
typing.Literal['warn', 'invalid'] | level, |
|
|
str | msg ) |
Definition at line 46 of file config.py.
46 def __init__(self, level: typing.Literal['warn', 'invalid'], msg: str):
47 self.level = level
48 super().__init__(msg)
49
◆ __str__()
searx.botdetection.config.SchemaIssue.__str__ |
( |
| self | ) |
|
Definition at line 50 of file config.py.
50 def __str__(self):
51 return f"[cfg schema {self.level}] {self.args[0]}"
52
53
◆ level
searx.botdetection.config.SchemaIssue.level = level |
The documentation for this class was generated from the following file:
- /home/andrew/Documents/code/public/searxng/searx/botdetection/config.py