MCPcopy
hub / github.com/searx/searx / SearxEngineXPathException

Class SearxEngineXPathException

searx/exceptions.py:96–103  ·  view source on GitHub ↗

Error while getting the result of an XPath expression

Source from the content-addressed store, hash-verified

94
95
96class SearxEngineXPathException(SearxEngineResponseException):
97 """Error while getting the result of an XPath expression"""
98
99 def __init__(self, xpath_spec, message):
100 super().__init__(str(xpath_spec) + " " + message)
101 self.message = message
102 # str(xpath_spec) to deal with str and XPath instance
103 self.xpath_str = str(xpath_spec)

Callers 3

eval_xpathFunction · 0.90
eval_xpath_listFunction · 0.90
eval_xpath_getindexFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected