summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/fcompiler/environment.py')
-rw-r--r--numpy/distutils/fcompiler/environment.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/environment.py b/numpy/distutils/fcompiler/environment.py
index 21a5be003..ecd4d9989 100644
--- a/numpy/distutils/fcompiler/environment.py
+++ b/numpy/distutils/fcompiler/environment.py
@@ -33,7 +33,10 @@ class EnvironmentConfig:
try:
conf_desc = self._conf_keys[name]
except KeyError:
- raise AttributeError(name)
+ raise AttributeError(
+ f"'EnvironmentConfig' object has no attribute '{name}'"
+ ) from None
+
return self._get_var(name, conf_desc)
def get(self, name, default=None):