mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-19 15:33:45 +02:00
fix wikipedia without thumbnail
This commit is contained in:
parent
f91decb73b
commit
1e4b5b6f78
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def fetch_wikipedia_summary(title: str):
|
|||
image_title = image_caption = None
|
||||
return (
|
||||
data["extract"], data["extract_html"], data["timestamp"],
|
||||
data["thumbnail"]["source"],
|
||||
data["thumbnail"]["source"] if "thumbnail" in data else None,
|
||||
image_title, image_caption
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue