_fetch_digester_exit: fix NoneType AttributeError
authorZac Medico <zmedico@gentoo.org>
Wed, 9 Jan 2013 22:23:28 +0000 (14:23 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 9 Jan 2013 22:23:28 +0000 (14:23 -0800)
pym/portage/_emirrordist/FetchTask.py

index 65fd672b9312fbb62f153ac1f76d3d97ef2d8338..0853197db044f278c9f638b54128cecae7377726 100644 (file)
@@ -475,8 +475,8 @@ class FetchTask(CompositeTask):
                else:
                        bad_digest = self._find_bad_digest(digester.digests)
                        if bad_digest is not None:
-                               msg = "%s %s has bad %s digest: expected %s, got %s" % \
-                                       (self.distfile, self._current_mirror.name, bad_digest,
+                               msg = "%s has bad %s digest: expected %s, got %s" % \
+                                       (self.distfile, bad_digest,
                                        self.digests[bad_digest], digester.digests[bad_digest])
                                self.scheduler.output(msg + '\n', background=True,
                                        log_path=self._log_path)