/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
770
770
    import bzrlib.ui
771
771
    from bzrlib.ui.text import TextUIFactory
772
772
    bzrlib.ui.ui_factory = TextUIFactory()
773
 
    argv = [a.decode(bzrlib.user_encoding) for a in argv[1:]]
 
773
    try:
 
774
        argv = [a.decode(bzrlib.user_encoding) for a in argv[1:]]
 
775
    except UnicodeDecodeError:
 
776
        raise errors.BzrError(("Parameter '%r' is unsupported by the current "
 
777
                                                            "encoding." % a))
774
778
    ret = run_bzr_catch_errors(argv)
775
779
    trace.mutter("return code %d", ret)
776
780
    return ret