333
333
do_main(argv, UbuntuOneOptionsParser())
334
334
except AuthenticationError, e:
335
sed_bus_error("Authentication failed: %s" % e, e)
336
335
print "Authentication failed: %s" % e
337
336
except ConnectionError, e:
338
sed_bus_error("Connection failed: %s" % e, e)
339
337
print "Connection failed: %s" % e
340
338
except DirectoryNotInitializedError, e:
341
sed_bus_error("Directory not initialized", e)
342
339
print "Directory not initialized; " \
343
340
"use --init [DIRECTORY] to initialize it."
344
341
except DirectoryAlreadyInitializedError, e:
345
sed_bus_error("Directory not initialized", e)
346
342
print "Directory already initialized."
347
343
except NoSuchShareError, e:
348
sed_bus_error("No matching share found.", e)
349
344
print "No matching share found."
350
345
except ReadOnlyShareError, e:
351
sed_bus_error("The selected action isn't possible on a read-only share.", e)
352
346
print "The selected action isn't possible on a read-only share."
353
347
except (ForcedShutdown, KeyboardInterrupt), e:
354
sed_bus_error("Interrupted!", e)
355
348
print "Interrupted!"
356
349
except TreesDiffer, e:
357
sed_bus_error("Trees differ.", e)
359
351
print "Trees differ."