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:
parent
290a243d60
commit
ac44ae7191
@ -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')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user