Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-shaw committed Feb 13, 2024
1 parent 2ab463a commit 23b646d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion govuk_frontend_wtf/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def wtforms_errors(form, params={}):
id_map = {}
for field_name in form._fields.keys():
field = getattr(form, field_name, None)
if field and hasattr(field, 'id'):
if field and hasattr(field, "id"):
id_map[field_name] = field.id

wtforms_params["errorList"] = flatten_errors(form.errors, id_map=id_map)
Expand Down

0 comments on commit 23b646d

Please sign in to comment.