mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[py 3.8] pylint reports false positive warning in py 3.8
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
9f7c90e0a0
commit
49e69a671a
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue