Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 923bc02c authored by Alexandre Flament's avatar Alexandre Flament Committed by GitHub
Browse files

Merge pull request #2363 from dalf/fix-wikipedia-minor

[fix] wikipedia: minor fix: return no result instead of crash in some very few cases.
parents a458451d 58d51e08
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ def response(resp):
    api_result = loads(resp.text)

    # skip disambiguation pages
    if api_result['type'] != 'standard':
    if api_result.get('type') != 'standard':
        return []

    title = api_result['title']