summaryrefslogtreecommitdiffstats
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 9717e69d1..445d804e0 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -335,6 +335,8 @@ def get_operator(mydep):
"""
if mydep:
mydep = remove_slot(mydep)
+ if not mydep:
+ return None
if mydep[0] == "~":
operator = "~"
elif mydep[0] == "=":