From 49e69a671a15f3869618b709d1451cfb073d1eb9 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 28 Jun 2024 09:53:33 +0200 Subject: [PATCH] [py 3.8] pylint reports false positive warning in py 3.8 Signed-off-by: Markus Heiser --- searx/botdetection/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/searx/botdetection/config.py b/searx/botdetection/config.py index 147104205..449d63a10 100644 --- a/searx/botdetection/config.py +++ b/searx/botdetection/config.py @@ -162,6 +162,8 @@ class Config: """Get a :py:class:`pathlib.Path` object from a config string.""" val = self.get(name, default) + # pylint reports false positive warning in py 3.8 + # pylint: disable=unreachable if val is UNSET: if default is UNSET: raise KeyError(name) @@ -173,6 +175,8 @@ class Config: string.""" fqn = self.get(name, default) + # pylint reports false positive warning in py 3.8 + # pylint: disable=unreachable if fqn is UNSET: if default is UNSET: raise KeyError(name)