.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.botdetection.config.SchemaIssue Class Reference
+ Inheritance diagram for searx.botdetection.config.SchemaIssue:
+ Collaboration diagram for searx.botdetection.config.SchemaIssue:

Public Member Functions

 __init__ (self, typing.Literal['warn', 'invalid'] level, str msg)
 
 __str__ (self)
 

Public Attributes

 level
 

Detailed Description

Exception to store and/or raise a message from a schema issue.

Definition at line 53 of file config.py.

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ __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

Member Data Documentation

◆ level

searx.botdetection.config.SchemaIssue.level

Definition at line 57 of file config.py.


The documentation for this class was generated from the following file: