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

Fix TypeError when creating a superuser with an incorrect password #2567

Merged
merged 3 commits into from
Nov 6, 2020

Conversation

mdamien
Copy link
Contributor

@mdamien mdamien commented Nov 5, 2020

Exact error when entering an invalid password:

  File "/usr/local/lib/python3.7/site-packages/udata/core/user/commands.py", line 43, in <genexpr>
    errors = '\n'.join('\n'.join(e) for e in form.errors.values())
TypeError: sequence item 0: expected str instance, _LazyString found

Exact error:

  File "/usr/local/lib/python3.7/site-packages/udata/core/user/commands.py", line 43, in <genexpr>
    errors = '\n'.join('\n'.join(e) for e in form.errors.values())
TypeError: sequence item 0: expected str instance, _LazyString found
@quaxsze
Copy link
Contributor

quaxsze commented Nov 6, 2020

Nice fix 👍
Can you update the changelog?

@mdamien
Copy link
Contributor Author

mdamien commented Nov 6, 2020

Done :)

@quaxsze quaxsze merged commit d6eb687 into opendatateam:master Nov 6, 2020
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