CC-2805: Airtime-import is failing

- fixed
This commit is contained in:
James 2011-09-12 13:08:02 -04:00
parent ac44ae7191
commit ab302b46ad
1 changed files with 4 additions and 1 deletions

View File

@ -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()