pydrive backend crashes
Bug #1723890 reported by
Kilian Lackhove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
i am using duplicity 0.7.07.1-r0 with pydrive backend and google drive on alpne 3.5 (inside a docker container).
There seems to be a bug in the error handling:
code = _get_code_
File "/usr/lib/
return backend.
File "/usr/lib/
http_status = error.args[
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
this patch fixes it for me on 0.7.07.1:
--- pydrivebackend.py 2017-08-06 18:25:09.000000000 +0200 Error): backend_ not_found 0].resp. status backend_ not_found backend_ permission_ denied backend_ permission_ denied backend_ error
+++ pydrivebackend.py 2017-10-29 16:28:54.520091304 +0100
@@ -211,11 +211,7 @@
if isinstance(error, FileNotUploaded
return log.ErrorCode.
elif isinstance(error, ApiRequestError):
- http_status = error.args[
- if http_status == 404:
- return log.ErrorCode.
- elif http_status == 403:
- return log.ErrorCode.
+ return log.ErrorCode.
return log.ErrorCode.
duplicity. backend. register_ backend( 'pydrive' , PyDriveBackend)
i have no idea how bzr and launchpad work and don't have the time to figure it out. Is there a git mirror somehwere? If not, feel free to commit this one for me