From 75d616c5e56584c3efbf6815bbdab2e984e3c998 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 5 Nov 2013 07:58:56 +0000 Subject: [PATCH] Fix fdroid stats, checking config before reading it --- fdroidserver/stats.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fdroidserver/stats.py b/fdroidserver/stats.py index b072aa61..311d835b 100644 --- a/fdroidserver/stats.py +++ b/fdroidserver/stats.py @@ -43,10 +43,6 @@ def main(): global options, config - if not config['update_stats']: - print "Stats are disabled - check your configuration" - sys.exit(1) - # Parse command line... parser = OptionParser() parser.add_option("-v", "--verbose", action="store_true", default=False, @@ -57,6 +53,10 @@ def main(): config = common.read_config(options) + if not config['update_stats']: + print "Stats are disabled - check your configuration" + sys.exit(1) + # Get all metadata-defined apps... metaapps = common.read_metadata(options.verbose)