~mterry/duplicity/debian-dir

« back to all changes in this revision

Viewing changes to duplicity/backends/swiftbackend.py

  • Committer: Michael Terry
  • Date: 2014-10-27 02:27:36 UTC
  • Revision ID: michael.terry@canonical.com-20141027022736-prltox10ed47kbdg
Fix pylint/pep8 nits so that tests pass

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
            container_metadata = self.conn.head_container(self.container)
79
79
        except ClientException:
80
80
            pass
81
 
        except Exception, e:
 
81
        except Exception as e:
82
82
            log.FatalError("Connection failed: %s %s"
83
83
                           % (e.__class__.__name__, str(e)),
84
84
                           log.ErrorCode.connection_failed)
87
87
            log.Info("Creating container %s" % self.container)
88
88
            try:
89
89
                self.conn.put_container(self.container)
90
 
            except Exception, e:
 
90
            except Exception as e:
91
91
                log.FatalError("Container creation failed: %s %s"
92
92
                               % (e.__class__.__name__, str(e)),
93
93
                               log.ErrorCode.connection_failed)