From 0ac2827468a5d18536a9066033e0ad4a4767edbb Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 17 Jul 2020 20:07:51 +0100 Subject: [PATCH] Fix crash on bad wtforms validator instace --- app/blueprints/packages/releases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/blueprints/packages/releases.py b/app/blueprints/packages/releases.py index 278f9aa6..4eec6cd9 100644 --- a/app/blueprints/packages/releases.py +++ b/app/blueprints/packages/releases.py @@ -55,7 +55,7 @@ class CreatePackageReleaseForm(FlaskForm): class EditPackageReleaseForm(FlaskForm): title = StringField("Title", [InputRequired(), Length(1, 30)]) - url = StringField("URL", [URL]) + url = StringField("URL", [URL()]) task_id = StringField("Task ID", filters = [lambda x: x or None]) approved = BooleanField("Is Approved") min_rel = QuerySelectField("Minimum Minetest Version", [InputRequired()],