Skip to content

Commit

Permalink
Raise attribute error for MPDataDoc (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Munro authored Aug 15, 2022
1 parent 2856653 commit 394fc4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mp_api/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def new_str(self) -> str:

def new_getattr(self, attr) -> str:
if attr in unset_fields:
raise MPRestError(
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 394fc4c

Please sign in to comment.