mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 18:12:21 +02:00
[lint] pylint searx/search/processors files / BTW add some doc-strings
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
b1557b5443
commit
924f9afea3
6 changed files with 68 additions and 35 deletions
|
@ -1,13 +1,17 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
# lint: pylint
|
||||
|
||||
"""Processores for engine-type: ``offline``
|
||||
|
||||
"""
|
||||
|
||||
from searx import logger
|
||||
from searx.search.processors.abstract import EngineProcessor
|
||||
|
||||
from .abstract import EngineProcessor
|
||||
|
||||
logger = logger.getChild('searx.search.processor.offline')
|
||||
|
||||
|
||||
class OfflineProcessor(EngineProcessor):
|
||||
"""Processor class used by ``offline`` engines"""
|
||||
|
||||
engine_type = 'offline'
|
||||
|
||||
|
@ -21,6 +25,6 @@ class OfflineProcessor(EngineProcessor):
|
|||
except ValueError as e:
|
||||
# do not record the error
|
||||
logger.exception('engine {0} : invalid input : {1}'.format(self.engine_name, e))
|
||||
except Exception as e:
|
||||
except Exception as e: # pylint: disable=broad-except
|
||||
self.handle_exception(result_container, e)
|
||||
logger.exception('engine {0} : exception : {1}'.format(self.engine_name, e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue