Comment 9 for bug 1507109

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1507109] Re: Duplicity crashes in Ubuntu 15.04

@Jonas, does your fix work in older Boto versions? Not worried about Py3
at the moment.

On Thu, Jan 21, 2016 at 11:37 AM, Jonas H <email address hidden>
wrote:

> Well you gotta import it of course.
>
> from boto.exception import BotoServerError
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1507109
>
> Title:
> Duplicity crashes in Ubuntu 15.04
>
> Status in Duplicity:
> In Progress
> Status in Arch Linux:
> New
>
> Bug description:
> Duplicity: 0.7.05
> Ubuntu: 15.04
>
> While running a backup, receive the following error. Worked fine in
> Ubuntu 14.10 but started to fail after upgrade to 15.04.
>
> Traceback (most recent call last):
> File "/usr/bin/duplicity", line 1525, in <module>
> with_tempdir(main)
> File "/usr/bin/duplicity", line 1519, in with_tempdir
> fn()
> File "/usr/bin/duplicity", line 1357, in main
> action = commandline.ProcessCommandLine(sys.argv[1:])
> File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
> 1103, in ProcessCommandLine
> backup, local_pathname = set_backend(args[0], args[1])
> File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
> 994, in set_backend
> globals.backend = backend.get_backend(bend)
> File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line
> 223, in get_backend
> obj = get_backend_object(url_string)
> File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line
> 209, in get_backend_object
> return factory(pu)
> File
> "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line
> 161, in __init__
> self.resetConnection()
> File
> "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line
> 187, in resetConnection
> if "NoSuchBucket" in e.error_code:
> AttributeError: 'CertificateError' object has no attribute 'error_code'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/duplicity/+bug/1507109/+subscriptions
>