From 0bd5be2ea36cfdcaef9bb4fa561d2f03c16816ea Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 29 Jun 2015 11:17:59 +0200 Subject: [PATCH] Fix update fail when icons are missing Introduced yesterday, I believe. --- fdroidserver/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.30.2