installed_extensions_for no longer fails when nothing known about pkg
This commit is contained in:
parent
5c2608b032
commit
82dc935a50
1 changed files with 9 additions and 2 deletions
|
@ -119,8 +119,15 @@ def extensions_for(self, extendee_spec):
|
|||
|
||||
@_autospec
|
||||
def installed_extensions_for(self, extendee_spec):
|
||||
return [s.package for s in self.installed_package_specs()
|
||||
if s.package.extends(extendee_spec)]
|
||||
for s in self.installed_package_specs():
|
||||
try:
|
||||
if s.package.extends(extendee_spec):
|
||||
yield s.package
|
||||
except UnknownPackageError, e:
|
||||
# Skip packages we know nothing about
|
||||
continue
|
||||
# TODO: add some conditional way to do this instead of
|
||||
# catching exceptions.
|
||||
|
||||
|
||||
def dirname_for_package_name(self, pkg_name):
|
||||
|
|
Loading…
Reference in a new issue