From: Ciaran Gultnieks Date: Mon, 29 Jun 2015 09:17:59 +0000 (+0200) Subject: Fix update fail when icons are missing X-Git-Tag: 0.4.0~17 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0bd5be2ea36cfdcaef9bb4fa561d2f03c16816ea;p=fdroidserver.git Fix update fail when icons are missing Introduced yesterday, I believe. --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index de586c57..5afa8758 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -800,7 +800,8 @@ def make_index(apps, sortedids, apks, repodir, archive, categories): addElement('lastupdated', time.strftime('%Y-%m-%d', app['lastupdated']), doc, apel) addElement('name', app['Name'], doc, apel) addElement('summary', app['Summary'], doc, apel) - addElement('icon', app['icon'], doc, apel) + if app['icon']: + addElement('icon', app['icon'], doc, apel) def linkres(appid): if appid in apps: