diff options
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 66f5ce4ee..d7cd8fa11 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8101,7 +8101,8 @@ class Scheduler(object): chosen_pkg = pkg break - self._pkg_queue.remove(chosen_pkg) + if chosen_pkg is not None: + self._pkg_queue.remove(chosen_pkg) return chosen_pkg def _dependent_on_scheduled_merges(self, pkg): |