Don't error on invalid budget ID for reimbursement claim

This commit is contained in:
Yingtong Li 2020-09-06 16:51:47 +10:00
parent 4aef60b99b
commit 7299d7d414
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -530,7 +530,7 @@ def claim_view(request, claim):
if claim.budget_id: if claim.budget_id:
try: try:
budget = models.Budget.objects.get(id=claim.budget_id.split('-')[-1]) budget = models.Budget.objects.get(id=claim.budget_id.split('-')[-1])
except models.Budget.DoesNotExist: except:
budget = None budget = None
bsb_lookedup = do_bsb_lookup(claim.payee_bsb) bsb_lookedup = do_bsb_lookup(claim.payee_bsb)