From 7c5be575c642ca34dbe07b96193225414a2538d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 4 Nov 2013 15:16:09 +0100 Subject: [PATCH] Fix server.py NoneType error --- fdroidserver/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/server.py b/fdroidserver/server.py index bfe5e5be..5a6cc61d 100644 --- a/fdroidserver/server.py +++ b/fdroidserver/server.py @@ -30,14 +30,14 @@ def main(): global config, options - config = common.read_config(options) - # Parse command line... parser = OptionParser() parser.add_option("-v", "--verbose", action="store_true", default=False, help="Spew out even more information than normal") (options, args) = parser.parse_args() + config = common.read_config(options) + if len(args) != 1: print "Specify a single command" sys.exit(1)