~duplicity-team/duplicity/0.7-series

« back to all changes in this revision

Viewing changes to duplicity/backends/_cf_pyrax.py

  • Committer: Kenneth Loafman
  • Date: 2015-01-11 16:09:05 UTC
  • mfrom: (1046.1.1 duplicity)
  • Revision ID: kenneth@loafman.com-20150111160905-1xdk59p6u8el5otn
* Merged in lp:~9-sa/duplicity/FixBug1408289
  - Fix bug #1408289
  - Wrong attribute name prevented raise of client exception, working now

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        if isinstance(e, self.nso_exc):
74
74
            return log.ErrorCode.backend_not_found
75
75
        elif isinstance(e, self.client_exc):
76
 
            if e.status == 404:
 
76
            if e.code == 404:
77
77
                return log.ErrorCode.backend_not_found
78
78
        elif hasattr(e, 'http_status'):
79
79
            if e.http_status == 404: