Skip to content

Commit

Permalink
Fix dynamic model getattr (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Munro authored Apr 4, 2023
1 parent f5055d0 commit 410627e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp_api/client/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`."
Expand Down

0 comments on commit 410627e

Please sign in to comment.