Fix crash on bad wtforms validator instace

This commit is contained in:
rubenwardy 2020-07-17 20:07:51 +01:00
parent 054dfa4cbd
commit 0ac2827468

@ -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()],