You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying an invalid field in the query builder this raises a key error. This could raise a more descriptive error (maybe KeyError or ValueError) that makes it explicit that the field is not a valid sub field of its parent. It could also point towards the available fields/ the get_info function that returns this information to the user.
What I Did
fromdatenguidepy.query_builderimportQueryq=Query.region('01')
q.add_field('NOT_VALID')
# Example on a different hierarchy levelq=Query.region('11')
s=q.add_field('BEVSTD')
s.add_field('ANOTHER_INVALID_FIELD')
The text was updated successfully, but these errors were encountered:
Description
When specifying an invalid field in the query builder this raises a key error. This could raise a more descriptive error (maybe KeyError or ValueError) that makes it explicit that the field is not a valid sub field of its parent. It could also point towards the available fields/ the get_info function that returns this information to the user.
What I Did
The text was updated successfully, but these errors were encountered: