From 29293eb0409e57b0bfff24c681d03f9cf922332a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 20 Mar 2007 21:58:46 +0000 Subject: Catch a potential InvalidDependString exception. svn path=/main/trunk/; revision=6258 --- pym/emerge/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 5b38f95af..bd700ff92 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -1694,8 +1694,14 @@ class depgraph: oldcomment = comment licenses = portdb.aux_get(p, ["LICENSE"])[0] missing_licenses = [] - for l in pkgsettings.getMissingLicenses( - licenses, p): + try: + missing_licenses = \ + pkgsettings.getMissingLicenses(licenses, p) + except portage.exception.InvalidDependString: + # This will have already been reported + # above via mreasons. + pass + for l in missing_licenses: l_path = portdb.findLicensePath(l) if l in shown_licenses: continue -- cgit v1.2.3-1-g7c22