]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix some miscapture bugs.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 3 Nov 2015 03:03:33 +0000 (03:03 +0000)
committermeejah <meejah@meejah.ca>
Wed, 20 Jan 2016 08:33:18 +0000 (01:33 -0700)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index 8150246749bf9d005e8b681b78b48400c41c6eb0..1be3e683adf3b9e8eb003093982b0c18521613e0 100644 (file)
@@ -630,9 +630,9 @@ class Downloader(QueueMixin, WriteFileMixin):
             for dir_name in dirmap:
                 (dirnode, metadata) = dirmap[dir_name]
                 if dirnode.get_readonly_uri() != self._upload_readonly_dircap:
-                    d2.addCallback(lambda ign, dir_name=dir_name:
+                    d2.addCallback(lambda ign, dir_name=dir_name, dirnode=dirnode:
                                    self._scan_remote_dmd(dir_name, dirnode, scan_batch))
-                    def _err(f):
+                    def _err(f, dir_name=dir_name):
                         self._log("failed to scan DMD for client %r: %s" % (dir_name, f))
                         # XXX what should we do to make this failure more visible to users?
                     d2.addErrback(_err)