parent
ac44ae7191
commit
ab302b46ad
|
@ -291,7 +291,10 @@ try:
|
|||
(option, args) = parser.parse_args()
|
||||
except Exception, e:
|
||||
printHelp()
|
||||
if hasattr(e, 'msg'):
|
||||
print "Error: "+e.msg
|
||||
else:
|
||||
print "Error: "+e
|
||||
sys.exit()
|
||||
except SystemExit:
|
||||
printHelp()
|
||||
|
|
Loading…
Reference in New Issue