From 10bfa44a67311ed448db11dd42ade818a0465d16 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 12 Dec 2008 21:20:59 +0000 Subject: [PATCH] Avoid TypeError in BlockerCache.__iter__() that's triggered with FEATURES=python-trace. Thanks to Fabian Groffen for reporting. (trunk r12180) svn path=/main/branches/2.1.6/; revision=12216 --- pym/_emerge/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 36670f69a..5acd3be80 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3874,6 +3874,9 @@ class BlockerCache(DictMixin): self._modified.add(cpv) def __iter__(self): + if self._cache_data is None: + # triggered by python-trace + return iter([]) return iter(self._cache_data["blockers"]) def __delitem__(self, cpv): -- 2.26.2