From 01344256a98162387065e7a397fc18c1002eaa3b Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Mon, 26 Dec 2022 14:01:34 -0500 Subject: [PATCH] Fix license editor crash (#410) --- app/blueprints/admin/licenseseditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/blueprints/admin/licenseseditor.py b/app/blueprints/admin/licenseseditor.py index de13678d..16803157 100644 --- a/app/blueprints/admin/licenseseditor.py +++ b/app/blueprints/admin/licenseseditor.py @@ -34,7 +34,7 @@ def license_list(): class LicenseForm(FlaskForm): name = StringField("Name", [InputRequired(), Length(3, 100)]) is_foss = BooleanField("Is FOSS") - url = URLField("URL", [Optional], filters=[nonEmptyOrNone]) + url = URLField("URL", [Optional()], filters=[nonEmptyOrNone]) submit = SubmitField("Save")