mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +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
|
import logging
|
||||||
|
|
||||||
from fdroidserver.common import FDroidException
|
from fdroidserver.common import FDroidException
|
||||||
|
from optparse import OptionError
|
||||||
|
|
||||||
commands = {
|
commands = {
|
||||||
"build": "Build a package from source",
|
"build": "Build a package from source",
|
||||||
|
@ -96,6 +97,9 @@ def main():
|
||||||
else:
|
else:
|
||||||
logging.critical(str(e))
|
logging.critical(str(e))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
except OptionError, e:
|
||||||
|
logging.critical(str(e))
|
||||||
|
sys.exit(1)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('')
|
print('')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue