diff --git a/mp_api/client/core/client.py b/mp_api/client/core/client.py index 6a21debc5..f60e335ed 100644 --- a/mp_api/client/core/client.py +++ b/mp_api/client/core/client.py @@ -759,7 +759,7 @@ def new_str(self) -> str: return s def new_getattr(self, attr) -> str: - if attr in unset_fields: + if attr in self.fields_not_requested: raise AttributeError( f"'{attr}' data is available but has not been requested in 'fields'." " A full list of unrequested fields can be found in `fields_not_requested`."