Skip to content

Commit

Permalink
Merge pull request #21 from wtsi-hgi/fix/conda-uninstall
Browse files Browse the repository at this point in the history
Fix Conda package uninstall error
  • Loading branch information
jiffyclub authored Mar 27, 2018
2 parents bcff468 + 2913c41 commit f26ac9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def run_conda_package_command(command_runner, name, version, command):
try:
return command_runner(command)
except CondaCommandJsonDescribedError as e:
if 'exception_name' in e.output and e.output['exception_name'] == 'PackageNotFoundError':
if 'exception_name' in e.output and e.output['exception_name'] in ('PackageNotFoundError', 'PackagesNotFoundError'):
raise CondaPackageNotFoundError(name, version)
else:
raise
Expand Down

0 comments on commit f26ac9f

Please sign in to comment.