CC-2659: airtime-import: displaying help text on all exception

- when it cannot communicate to Airtime Server, it displays just error msg
This commit is contained in:
James 2011-09-09 17:08:23 -04:00
parent 290a243d60
commit ac44ae7191

View file

@ -124,7 +124,8 @@ def CopyAction(option, opt, value, parser):
raise OptionValueError("No argument found. This option requires at least one argument.")
stor = helper_get_stor_dir()
if(stor is None):
exit("Unable to connect to the Airtime server.")
print "Unable to connect to the Airtime server."
return
dest = stor+"organize/"
copy_or_move_files_to(parser.rargs, dest, 'copy')