diff --git a/CHANGELOG.md b/CHANGELOG.md index b533ef2070..7a65eda5cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Escaping XML's forbidden characters [#2562](https://github.com/opendatateam/udata/pull/2562) - Ignore pattern feature for linkchecker [#2564](https://github.com/opendatateam/udata/pull/2564) +- Fix TypeError when creating a superuser with an incorrect password [#2567](https://github.com/opendatateam/udata/pull/2567) ## 2.4.0 (2020-10-16) diff --git a/udata/core/user/commands.py b/udata/core/user/commands.py index a099369d43..718d9eefc3 100644 --- a/udata/core/user/commands.py +++ b/udata/core/user/commands.py @@ -40,7 +40,7 @@ def create(): user = datastore.create_user(**data) success('User(id={u.id} email={u.email}) created'.format(u=user)) return user - errors = '\n'.join('\n'.join(e) for e in form.errors.values()) + errors = '\n'.join('\n'.join([str(m) for m in e]) for e in form.errors.values()) exit_with_error('Error creating user', errors)