From 0ae913df564ce7805af140dbc091c7161352f9be Mon Sep 17 00:00:00 2001 From: Aman Goel Date: Wed, 30 Jun 2021 19:35:55 +0530 Subject: [PATCH] fix: improve __getattr__ error message --- src/boost_histogram/_internal/axis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boost_histogram/_internal/axis.py b/src/boost_histogram/_internal/axis.py index d88113afa..1ff830b13 100644 --- a/src/boost_histogram/_internal/axis.py +++ b/src/boost_histogram/_internal/axis.py @@ -66,7 +66,7 @@ def __getattr__(self, attr: str) -> Any: if attr == "metadata": return None raise AttributeError( - f"object {self.__class__.__name__} has not attribute {attr}" + f"object {self.__class__.__name__} has no attribute {attr}" ) def __init__(