-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
AttributeError: 'bool' object has no attribute 'lower'
#386
Comments
Thanks for finding it out and making a fix. Actually that case is quite interesting, because labels should always be strings during transmission and serialization. Can you please provide with more details of your setup? Also, I guess this setup will work, because for strings the |
I have been unable to replicate the problem when using a minimal code example. Could the issue be related to either the |
It actually should not. |
I suppose problem might be somewhere here: Custom retry middleware with task scheduling logic with delay execution
I suppose the problem that I didn't use prepare_label somewhere here :/ Additional: taskiq broker initialize logic
|
Hello @s3rius! Thank you for creating taskiq.
I encountered an exception (something like
AttributeError: 'bool' object has no attribute 'lower'
) withtaskiq
when attempting to use my customSimpleRetryMiddleware
. The problem occurred with the following code:Unfortunately, I don't have the full traceback of the exception to provide for troubleshooting.
I've implemented a fix, and the code is now working correctly:
However, I'm not entirely sure if the boolean value conversion logic (lambda x: str(x).lower() == "true") is the most appropriate approach. I'd appreciate your thoughts on this implementation.
The text was updated successfully, but these errors were encountered: