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

Minumum string length does not work #37

Closed
omershv opened this issue Jan 25, 2024 · 1 comment
Closed

Minumum string length does not work #37

omershv opened this issue Jan 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@omershv
Copy link

omershv commented Jan 25, 2024

This is because line 69 of parameter.py uses the code
if hasattr(value, "len") and len(value) < self.min_str_length:

The attribute you should check for is "__len__" and not "len"

@Ge0rg3
Copy link
Owner

Ge0rg3 commented Feb 26, 2024

Fixed by #40 👍

@Ge0rg3 Ge0rg3 closed this as completed Feb 26, 2024
@Ge0rg3 Ge0rg3 added the bug Something isn't working label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants