chiark / gitweb /
Apply some autopep8-python2 suggestions
[fdroidserver.git] / fdroid
diff --git a/fdroid b/fdroid
index c59578cf3b62f1e3da85810e941e8bd8701e08e3..ab901a7bb8038d15382b1f150cb9d7a569cea5e9 100755 (executable)
--- a/fdroid
+++ b/fdroid
@@ -22,6 +22,7 @@ import sys
 import logging
 
 from fdroidserver.common import FDroidException
+from optparse import OptionError
 
 commands = {
     "build": "Build a package from source",
@@ -39,7 +40,7 @@ commands = {
     "scanner": "Scan the source code of a package",
     "stats": "Update the stats of the repo",
     "server": "Interact with the repo HTTP server",
-    }
+}
 
 
 def print_help():
@@ -96,6 +97,9 @@ def main():
         else:
             logging.critical(str(e))
         sys.exit(1)
+    except OptionError, e:
+        logging.critical(str(e))
+        sys.exit(1)
     except KeyboardInterrupt:
         print('')
         sys.exit(1)