From: Zac Medico Date: Wed, 9 Jan 2013 22:23:28 +0000 (-0800) Subject: _fetch_digester_exit: fix NoneType AttributeError X-Git-Tag: v2.2.0_alpha150~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=51d563b2df46ecab2b9be0a7cfd98aacfdd16b2a;p=portage.git _fetch_digester_exit: fix NoneType AttributeError --- diff --git a/pym/portage/_emirrordist/FetchTask.py b/pym/portage/_emirrordist/FetchTask.py index 65fd672b9..0853197db 100644 --- a/pym/portage/_emirrordist/FetchTask.py +++ b/pym/portage/_emirrordist/FetchTask.py @@ -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)