Don't error on invalid budget ID for reimbursement claim
This commit is contained in:
parent
4aef60b99b
commit
7299d7d414
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user