Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update verbalizer error message to include the relevant template string #414

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mynhardtburger
Copy link
Contributor

Update the exception message to include the template field which is the cause for the error.

)
return source_object[index_object]

if not hasattr(source_object, index_object):
error(
"<NLP97715112E>",
AttributeError(
"Requested template string is not a valid property of type"
"Requested template string '%s' is not a valid property of type",
index_object,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also we should check if this index_object is actually a string, otherwise might cause problem without explicit stringification

mynhardtburger and others added 4 commits February 28, 2025 14:38
Co-authored-by: Gaurav Kumbhat <[email protected]>
Signed-off-by: Mynhardt Burger <[email protected]>
Co-authored-by: Gaurav Kumbhat <[email protected]>
Signed-off-by: Mynhardt Burger <[email protected]>
Signed-off-by: Mynhardt Burger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants