mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Don't print tracebacks for option errors
This commit is contained in:
parent
5e988eb84d
commit
102cbd20b3
1 changed files with 4 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue