mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Skip widget latest apps generator when data doesn't exist yet
This commit is contained in:
parent
c17bef6290
commit
388f997d37
1 changed files with 14 additions and 13 deletions
|
|
@ -486,6 +486,7 @@ def main():
|
||||||
knownapks.writeifchanged()
|
knownapks.writeifchanged()
|
||||||
|
|
||||||
# Generate latest apps data for widget
|
# Generate latest apps data for widget
|
||||||
|
if os.path.exists(os.path.join('stats', 'latestapps.txt')):
|
||||||
data = ''
|
data = ''
|
||||||
for line in file(os.path.join('stats', 'latestapps.txt')):
|
for line in file(os.path.join('stats', 'latestapps.txt')):
|
||||||
appid = line.rstrip()
|
appid = line.rstrip()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue