From 2913c41607208b716e3028aa5282b1d6540e6280 Mon Sep 17 00:00:00 2001 From: EWeatherill Date: Tue, 27 Mar 2018 16:59:35 +0100 Subject: [PATCH] Added PackagesNotFound string to capture PackageNotFound error. --- conda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda.py b/conda.py index dc40ad2..6ccddb5 100755 --- a/conda.py +++ b/conda.py @@ -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