duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #04621
[Merge] lp:~crosser/duplicity/fix-oauth-flow into lp:duplicity
Eugene Crosser has proposed merging lp:~crosser/duplicity/fix-oauth-flow into lp:duplicity.
Requested reviews:
duplicity-team (duplicity-team)
For more details, see:
https://code.launchpad.net/~crosser/duplicity/fix-oauth-flow/+merge/334275
dpbxbackend: Adapt OAuth flow to the "new" Dropbox API
--
Your team duplicity-team is requested to review the proposed merge of lp:~crosser/duplicity/fix-oauth-flow into lp:duplicity.
=== modified file 'duplicity/backends/dpbxbackend.py'
--- duplicity/backends/dpbxbackend.py 2017-07-11 14:55:38 +0000
+++ duplicity/backends/dpbxbackend.py 2017-11-25 13:05:11 +0000
@@ -142,11 +142,11 @@
auth_code = raw_input("Enter the authorization code here: ").strip()
try:
log.Debug('dpbx,auth_flow.finish(%s)' % auth_code)
- access_token, _ = auth_flow.finish(auth_code)
+ authresult = auth_flow.finish(auth_code)
except Exception as e:
raise BackendException('dpbx: Unable to obtain access token: %s' % e)
log.Info("dpbx: Authentication successfull")
- self.save_access_token(access_token)
+ self.save_access_token(authresult.access_token)
def login(self):
if self.load_access_token() is None:
Follow ups