Don't print tracebacks for option errors
This commit is contained in:
parent
5e988eb84d
commit
102cbd20b3
4
fdroid
4
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)
|
||||
|
|
Loading…
Reference in New Issue