~ubuntuone-hackers/ubuntuone-windows-installer/beta

« back to all changes in this revision

Viewing changes to src/u1sync/main.py

  • Committer: Manuel de la Pena
  • Date: 2010-11-02 21:59:53 UTC
  • mfrom: (84.4.8 add_icon_overlay)
  • Revision ID: mandel@themacaque.com-20101102215953-01hhsfmq2fb16e41
Add icons overlay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
    try:
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)
358
350
        if not e.quiet:
359
351
            print "Trees differ."
360
352
    else: