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

improper handling of tracker.get_slot("amount-of-money") in validate_credit_card method #181

Open
BGLouie opened this issue Oct 4, 2023 · 0 comments

Comments

@BGLouie
Copy link

BGLouie commented Oct 4, 2023

in validate_credit_card method, the amount-of-money slot may contain a number (e.g 5) or a string (e.g minimum) which is then evaluated in if amount and amount.lower() in balance_types leading to AttributeError: 'int' object has no attribute 'lower' if amount is a number.
Tested with:
Python 3.8.18
rasa 3.1.0
rasa-sdk 3.1.3

@BGLouie BGLouie changed the title improper handling of tracker.get_slot("amount-of-money") in validate_credit_card form improper handling of tracker.get_slot("amount-of-money") in validate_credit_card method Oct 4, 2023
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

No branches or pull requests

1 participant