Exception to store and/or raise a message from a schema issue.
Definition at line 56 of file config.py.
◆ __init__()
searx.botdetection.config.SchemaIssue.__init__ |
( |
| self, |
|
|
typing.Literal['warn', 'invalid'] | level, |
|
|
str | msg ) |
Definition at line 59 of file config.py.
59 def __init__(self, level: typing.Literal['warn', 'invalid'], msg: str):
60 self.level = level
61 super().__init__(msg)
62
◆ __str__()
searx.botdetection.config.SchemaIssue.__str__ |
( |
| self | ) |
|
Definition at line 63 of file config.py.
63 def __str__(self):
64 return f"[cfg schema {self.level}] {self.args[0]}"
65
66
◆ 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