From bd2e3d7717c030f527c9ecc5bc26762343ffee11 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 3 Nov 2021 09:28:24 +0100 Subject: [PATCH] jobs.submit_GET: use default session values This fixes a regression in the normal submit route introduced by the resubmission note patch. --- buildsrht/blueprints/jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildsrht/blueprints/jobs.py b/buildsrht/blueprints/jobs.py index 9ec3af1..2b834f6 100644 --- a/buildsrht/blueprints/jobs.py +++ b/buildsrht/blueprints/jobs.py @@ -169,8 +169,8 @@ def index(): @jobs.route("/submit") @loginrequired def submit_GET(): - manifest = session.pop("manifest") - note = session.pop("note") + manifest = session.pop("manifest", default=None) + note = session.pop("note", default=None) status = 200 payment_required = requires_payment(current_user) if payment_required: -- 2.38.5