← Back to team overview

duplicity-team team mailing list archive

[Merge] lp:~9-sa/duplicity/FixBug1408289 into lp:duplicity

 

Stephane ANGOT has proposed merging lp:~9-sa/duplicity/FixBug1408289 into lp:duplicity.

Requested reviews:
  duplicity-team (duplicity-team)
Related bugs:
  Bug #1408289 in Duplicity: "Pyrax backend fail when using Hubic storage"
  https://bugs.launchpad.net/duplicity/+bug/1408289

For more details, see:
https://code.launchpad.net/~9-sa/duplicity/FixBug1408289/+merge/246032

This branch fix bug #1408289,

Wrong variable name prevented rise of client exception, tested and working now
-- 
Your team duplicity-team is requested to review the proposed merge of lp:~9-sa/duplicity/FixBug1408289 into lp:duplicity.
=== modified file 'duplicity/backends/_cf_pyrax.py'
--- duplicity/backends/_cf_pyrax.py	2014-12-12 14:39:54 +0000
+++ duplicity/backends/_cf_pyrax.py	2015-01-10 14:52:12 +0000
@@ -73,7 +73,7 @@
         if isinstance(e, self.nso_exc):
             return log.ErrorCode.backend_not_found
         elif isinstance(e, self.client_exc):
-            if e.status == 404:
+            if e.code == 404:
                 return log.ErrorCode.backend_not_found
         elif hasattr(e, 'http_status'):
             if e.http_status == 404:


Follow ups