summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/emerge/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index ed086fb74..5574d9327 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -1676,7 +1676,11 @@ class depgraph:
print filename+":"
print comment
oldcomment = comment
- licenses = portdb.aux_get(p, ["LICENSE"])[0]
+ try:
+ licenses = portdb.aux_get(p, ["LICENSE"])[0]
+ except KeyError:
+ # Corruption will have been reported above.
+ continue
uselist = []
if "?" in licenses:
pkgsettings.setcpv(p, mydb=portdb)