Skip to content

Commit 410627e

Browse files
author
Jason Munro
authored
Fix dynamic model getattr (#764)
1 parent f5055d0 commit 410627e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp_api/client/core/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def new_str(self) -> str:
759759
return s
760760

761761
def new_getattr(self, attr) -> str:
762-
if attr in unset_fields:
762+
if attr in self.fields_not_requested:
763763
raise AttributeError(
764764
f"'{attr}' data is available but has not been requested in 'fields'."
765765
" A full list of unrequested fields can be found in `fields_not_requested`."

0 commit comments

Comments
 (0)