From e982336379a40ae8e2e7eba3331ea3c5795276ef Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Wed, 17 Aug 2022 13:23:42 +0100 Subject: [PATCH] portal/list: handle missing list --- app/portal/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/portal/list.py b/app/portal/list.py index 0fa6093..2c57a7d 100644 --- a/app/portal/list.py +++ b/app/portal/list.py @@ -131,7 +131,7 @@ class NewMirrorListForm(FlaskForm): # type: ignore @bp.route('/edit/', methods=['GET', 'POST']) def list_edit(list_id: int) -> ResponseReturnValue: list_: Optional[MirrorList] = MirrorList.query.filter(MirrorList.id == list_id).first() - if list is None: + if list_ is None: return Response(render_template("error.html.j2", section="list", header="404 Distribution List Not Found",