Browse Source

Fix improper call to populate_errors

Alec Nikolas Reiter 7 years ago
parent
commit
28019a23ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/auth/views.py

+ 1 - 1
flaskbb/auth/views.py

@@ -249,7 +249,7 @@ class RequestActivationToken(MethodView):
             try:
                 activator.initiate_account_activation(form.email.data)
             except ValidationError as e:
-                form.populate_errors((e.attribute, e.reason))
+                form.populate_errors([(e.attribute, e.reason)])
             else:
                 flash(
                     _(