summaryrefslogtreecommitdiff
path: root/searx/engines/pdbe.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-03-08 18:22:31 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-03-09 08:15:50 +0100
commita7b51f023eae6d13684a7209f1ac4d4477381562 (patch)
treec17ed843bb361ea25ed9225a05cbdedb0641533f /searx/engines/pdbe.py
parent48d04871a4bc37946ebd0a028944ca6283ba820f (diff)
downloadsearxng-a7b51f023eae6d13684a7209f1ac4d4477381562.tar.gz
searxng-a7b51f023eae6d13684a7209f1ac4d4477381562.zip
[black] upgrade black 22.12.0 --> 24.2.0
The issue discussed in [1] has been solved since [2] has been merged into black / now we can upgrade without touching 69 files as it was needed with black 23.1.0 [3]. [1] https://github.com/searxng/searxng/pull/2159#issuecomment-1425723977 [2] https://github.com/psf/black/pull/4060 [3] https://github.com/searxng/searxng/pull/2159/files Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/pdbe.py')
-rw-r--r--searx/engines/pdbe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/pdbe.py b/searx/engines/pdbe.py
index 34c8d3227..a0526057d 100644
--- a/searx/engines/pdbe.py
+++ b/searx/engines/pdbe.py
@@ -66,14 +66,14 @@ def construct_body(result):
year=result['release_year'],
)
img_src = pdbe_preview_url.format(pdb_id=result['pdb_id'])
- except (KeyError):
+ except KeyError:
content = None
img_src = None
# construct url for preview image
try:
img_src = pdbe_preview_url.format(pdb_id=result['pdb_id'])
- except (KeyError):
+ except KeyError:
img_src = None
return [title, content, img_src]