From e081a83757e644bf742a4a923ad9570b338f21e4 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sun, 17 Nov 2013 12:16:24 +0000 Subject: [PATCH] Correction to a5fafe6 --- fdroidserver/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 41a1a299..10e1a91d 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -53,8 +53,9 @@ def update_wiki(apps, apks): wikidata = '' if app['Disabled']: wikidata += '{{Disabled|' + app['Disabled'] + '}}\n' - for af in app.get('AntiFeatures', []).split(','): - wikidata += '{{AntiFeature|' + af + '}}\n' + if app['AntiFeatures']: + for af in app['AntiFeatures'].split(','): + wikidata += '{{AntiFeature|' + af + '}}\n' wikidata += '{{App|id=%s|name=%s|added=%s|lastupdated=%s|source=%s|tracker=%s|web=%s|donate=%s|flattr=%s|bitcoin=%s|litecoin=%s|license=%s|root=%s}}\n'%( app['id'], app['Name'],