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