diff --git a/src/pyhf/contrib/utils.py b/src/pyhf/contrib/utils.py index 0aa50f0ede..fca170643a 100644 --- a/src/pyhf/contrib/utils.py +++ b/src/pyhf/contrib/utils.py @@ -59,9 +59,8 @@ def download(archive_url, output_directory, force=False, compress=False): except ModuleNotFoundError as excep: - exception_info = ( + log.error( str(excep) + "\nInstallation of the contrib extra is required to use pyhf.contrib.utils.download" + "\nPlease install with: python -m pip install pyhf[contrib]\n" ) - log.error(exception_info)