From 0ff85456411f0c585f14c5eacf1bcc67244077b3 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 7 Jan 2020 22:03:31 +0000 Subject: [PATCH] Stop catalog page from throwing errors. --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 4c83d8c..b6c68e7 100755 --- a/app.py +++ b/app.py @@ -686,12 +686,16 @@ def catalog_page(): qids = [f'Q{item_id}' for item_id in sorted(item_ids)] + items = [Item.query.get(item_id) for item_id in item_ids] + entities = mediawiki.get_entities_with_cache(qids) items = [] other_items = set() for entity in entities: other_items.update(build_other_set(entity)) + continue + item = { 'label': wikibase.get_entity_label(entity), 'qid': entity['id'],