Skip to content

Commit

Permalink
Merge branch 'alexey-pelykh-bugfix/ResolvedContext__get_resolved_pack…
Browse files Browse the repository at this point in the history
…age'
  • Loading branch information
nerdvegas committed Jun 22, 2022
2 parents 3083aa9 + 7235e87 commit cf3f73b
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 cf3f73b

Please sign in to comment.