summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pym/portage_dep.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index a992992bf..b87058f7f 100644
--- a/pym/portage_dep.py
+++ b/pym/portage_dep.py
@@ -279,6 +279,8 @@ def get_operator(mydep):
"""
if mydep:
mydep = remove_slot(mydep)
+ if not mydep:
+ return None
if mydep[0] == "~":
operator = "~"
elif mydep[0] == "=":