Skip to content

Commit

Permalink
Added PackagesNotFound string to capture PackageNotFound error.
Browse files Browse the repository at this point in the history
  • Loading branch information
EWeatherill committed Mar 27, 2018
1 parent bcff468 commit 2913c41
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 2913c41

Please sign in to comment.