Skip to content

Commit

Permalink
Ignore "No package record found!"
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Jul 8, 2023
1 parent 7b6ac69 commit 9339539
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion conda_lock/conda_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,14 @@ def update_specs_for_arch(
f"Could not lock the environment for platform {platform}: {err_json.get('message')}"
) from exc

dryrun_install: DryRunInstall = json.loads(proc.stdout)
conda_update_output = proc.stdout

# <https://github.com/conda/conda-lock/pull/448#issuecomment-1627530087>
conda_update_output = conda_update_output.replace(
"No package record found!", ""
)

dryrun_install: DryRunInstall = json.loads(conda_update_output)
else:
dryrun_install = {"actions": {"LINK": [], "FETCH": []}}

Expand Down

0 comments on commit 9339539

Please sign in to comment.