Skip to content

Commit

Permalink
fix .read() method
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Sep 28, 2023
1 parent 34bc46f commit 7801fce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conda_libmamba_solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,8 +1016,9 @@ def _notify_conda_outdated(
entry.is_file()
and entry.name.endswith(".json")
and entry.name.rsplit("-", 2)[0] == "conda"
):
current_conda_prefix_rec = PrefixRecord(**json.loads(entry_file.read()))
):
with open(entry.path) as f:
current_conda_prefix_rec = PrefixRecord(**json.loads(f.read()))
break
if not current_conda_prefix_rec:
# We are checking whether conda can be found in the environment conda is
Expand Down

0 comments on commit 7801fce

Please sign in to comment.