Merge lp:~ed.so/duplicity/ssh-pexpect-msgbug into lp:duplicity/0.6

Proposed by edso
Status: Merged
Merged at revision: 872
Proposed branch: lp:~ed.so/duplicity/ssh-pexpect-msgbug
Merge into: lp:duplicity/0.6
Diff against target: 11 lines (+1/-0)
1 file modified
duplicity/backends/_ssh_pexpect.py (+1/-0)
To merge this branch: bzr merge lp:~ed.so/duplicity/ssh-pexpect-msgbug
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+127153@code.launchpad.net

Description of the change

probably fix

    File "/usr/local/lib/python2.7/dist-packages/duplicity/backends/_ssh_pexpect.py", line 223, in run_sftp_command
        log.Warn("Running '%s' with commands:\n %s\n failed (attempt #%d): %s" % (commandline, "\n ".join(commands), n, msg))
    UnboundLocalError: local variable 'msg' referenced before assignment

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'duplicity/backends/_ssh_pexpect.py'
--- duplicity/backends/_ssh_pexpect.py 2012-05-15 11:34:57 +0000
+++ duplicity/backends/_ssh_pexpect.py 2012-09-30 13:18:32 +0000
@@ -173,6 +173,7 @@
173 cmdloc = 0173 cmdloc = 0
174 passprompt = 0174 passprompt = 0
175 while 1:175 while 1:
176 msg = ""
176 match = child.expect(responses,177 match = child.expect(responses,
177 searchwindowsize=maxread+max_response_len)178 searchwindowsize=maxread+max_response_len)
178 log.Debug("State = sftp, Before = '%s'" % (child.before.strip()))179 log.Debug("State = sftp, Before = '%s'" % (child.before.strip()))

Subscribers

People subscribed via source and target branches

to all changes: