diff --git a/src/views/uploadview.py b/src/views/uploadview.py index cf7faba..7d84fae 100644 --- a/src/views/uploadview.py +++ b/src/views/uploadview.py @@ -30,7 +30,7 @@ class UploadView(FlaskView): @login_required def post(self): - title = request.form.get('title') + title = request.form.get('title', '') title = title[:Item.name.property.columns[0].type.length] title = bleach.clean(title, tags=[])