.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 = level
 

Detailed Description

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

Definition at line 43 of file config.py.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

◆ level

searx.botdetection.config.SchemaIssue.level = level

Definition at line 47 of file config.py.


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