diff --git a/pyalex/api.py b/pyalex/api.py index 61ef20d..f549932 100644 --- a/pyalex/api.py +++ b/pyalex/api.py @@ -266,13 +266,12 @@ def _full_collection_name(self): def __getattr__(self, key): if key == "groupby": raise AttributeError( - "Object has no attribute 'groupby'. " "Did you mean 'group_by'?" + "Object has no attribute 'groupby'. Did you mean 'group_by'?" ) if key == "filter_search": raise AttributeError( - "Object has no attribute 'filter_search'. " - "Did you mean 'search_filter'?" + "Object has no attribute 'filter_search'. Did you mean 'search_filter'?" ) return getattr(self, key)