chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e988eb
)
Don't print tracebacks for option errors
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Mon, 25 Aug 2014 15:48:18 +0000
(16:48 +0100)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Mon, 25 Aug 2014 15:48:31 +0000
(16:48 +0100)
fdroid
patch
|
blob
|
history
diff --git
a/fdroid
b/fdroid
index c59578cf3b62f1e3da85810e941e8bd8701e08e3..ac32d7c17ad5f66ac45ffae83f99de0270d6be0a 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",
@@
-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)