From 23b646d4b69a230c0dd58a876aeb51717f931a52 Mon Sep 17 00:00:00 2001 From: Matt Shaw Date: Tue, 13 Feb 2024 11:16:52 +0000 Subject: [PATCH] formatting --- govuk_frontend_wtf/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/govuk_frontend_wtf/main.py b/govuk_frontend_wtf/main.py index 535a0ae..dd76f9b 100644 --- a/govuk_frontend_wtf/main.py +++ b/govuk_frontend_wtf/main.py @@ -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)