diff --git a/app/routes/inspections.py b/app/routes/inspections.py index 513a89d..4c55b30 100644 --- a/app/routes/inspections.py +++ b/app/routes/inspections.py @@ -248,8 +248,8 @@ def start(): if form.validate_on_submit(): template = db.session.get(InspectionTemplate, form.template_id.data) - if template is None: - abort(404) + if template is None: + abort(404) if not template.get_form_schema(): flash('This template has no form fields yet. Please build the form in the template editor first.', 'warning')