1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 17:00:12 +01:00

Skip widget latest apps generator when data doesn't exist yet

This commit is contained in:
Ciaran Gultnieks 2012-06-25 09:21:10 +01:00
parent c17bef6290
commit 388f997d37

View File

@ -486,6 +486,7 @@ def main():
knownapks.writeifchanged()
# Generate latest apps data for widget
if os.path.exists(os.path.join('stats', 'latestapps.txt')):
data = ''
for line in file(os.path.join('stats', 'latestapps.txt')):
appid = line.rstrip()