diff options
author | ashutosh619-sudo <ashutoshsinghrkt@gmail.com> | 2020-07-19 04:29:54 +0530 |
---|---|---|
committer | ashutosh619-sudo <ashutoshsinghrkt@gmail.com> | 2020-07-19 04:29:54 +0530 |
commit | 6bb947c8dc3d5c154807d79861a7e5e995a6dc50 (patch) | |
tree | fb94bb3c2184e0794a06cf76f583fa8f78fda51b | |
parent | 9765987c2ade250c82bfeaba49d1f9301211d63a (diff) | |
download | numpy-6bb947c8dc3d5c154807d79861a7e5e995a6dc50.tar.gz |
Fix exception causes in __init__.py
-rw-r--r-- | numpy/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index 0fe8818ef..171067fcf 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -124,11 +124,11 @@ if __NUMPY_SETUP__: else: try: from numpy.__config__ import show as show_config - except ImportError: + except ImportError as e: msg = """Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there.""" - raise ImportError(msg) + raise ImportError(msg) from e from .version import git_revision as __git_revision__ from .version import version as __version__ |