From 7299d7d414febd319362fb79b101a77ca7b32f41 Mon Sep 17 00:00:00 2001 From: Yingtong Li Date: Sun, 6 Sep 2020 16:51:47 +1000 Subject: [PATCH] Don't error on invalid budget ID for reimbursement claim --- sstreasury/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sstreasury/views.py b/sstreasury/views.py index 7badcb5..61aff16 100644 --- a/sstreasury/views.py +++ b/sstreasury/views.py @@ -530,7 +530,7 @@ def claim_view(request, claim): if claim.budget_id: try: budget = models.Budget.objects.get(id=claim.budget_id.split('-')[-1]) - except models.Budget.DoesNotExist: + except: budget = None bsb_lookedup = do_bsb_lookup(claim.payee_bsb)