diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-04-27 15:13:39 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-04-27 15:13:39 +0200 |
commit | 924f9afea37b6c545a03505a7ec291cf44654ca7 (patch) | |
tree | e6dde4db9f29e6ffad19827569abc89db79e4544 /searx/search/processors/offline.py | |
parent | b1557b544368b416c158c13f12946859abbe00e0 (diff) | |
download | searxng-924f9afea37b6c545a03505a7ec291cf44654ca7.tar.gz searxng-924f9afea37b6c545a03505a7ec291cf44654ca7.zip |
[lint] pylint searx/search/processors files / BTW add some doc-strings
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/search/processors/offline.py')
-rw-r--r-- | searx/search/processors/offline.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/searx/search/processors/offline.py b/searx/search/processors/offline.py index ad03fed4b..f40626f39 100644 --- a/searx/search/processors/offline.py +++ b/searx/search/processors/offline.py @@ -1,13 +1,17 @@ # SPDX-License-Identifier: AGPL-3.0-or-later +# lint: pylint -from searx import logger -from searx.search.processors.abstract import EngineProcessor +"""Processores for engine-type: ``offline`` +""" -logger = logger.getChild('searx.search.processor.offline') +from searx import logger +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)) |