[boto] 'SSLError' object has no attribute 'error_code'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
New
|
Undecided
|
Unassigned |
Bug Description
Steps:
Run duplicity with boto for example:
$ docker run --rm -v $PWD:/data:ro -e PASSPHRASE=test -e GS_ACCESS_
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
action = commandline.
File "/usr/lib/
backup, local_pathname = set_backend(
File "/usr/lib/
globals.backend = backend.
File "/usr/lib/
obj = get_backend_
File "/usr/lib/
return factory(pu)
File "/usr/lib/
self.
File "/usr/lib/
if "NoSuchBucket" in e.error_code:
AttributeError: 'SSLError' object has no attribute 'error_code'
(here it's using Docker image it's just the same of course without)
Looks like _boto_single.py:187 is trying to access "error_code" property on SSLError object which probably should instead be accessing the "reason" property (see https:/
OS: Alpine
Versions:
duplicity==0.7.5
pycrypto==2.6.1
PyDrive==1.0.1
pyOpenSSL==0.15.1