Skip to content

Commit

Permalink
Merge branch 'bugfix/ResolvedContext__get_resolved_package' of https:…
Browse files Browse the repository at this point in the history
…//github.com/alexey-pelykh/rez into alexey-pelykh-bugfix/ResolvedContext__get_resolved_package
  • Loading branch information
nerdvegas committed Jun 22, 2022
2 parents 3083aa9 + 96dd363 commit 7235e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rez/resolved_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def get_resolved_package(self, name):
"""Returns a `Variant` object or None if the package is not in the
resolve.
"""
pkgs = [x for x in self._resolved_packages if x.name == name]
pkgs = [x for x in (self._resolved_packages or []) if x.name == name]
return pkgs[0] if pkgs else None

def copy(self):
Expand Down

0 comments on commit 7235e87

Please sign in to comment.