summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-09-06 16:51:47 +1000
committerYingtong Li <runassudo@yingtongli.me>2020-09-06 16:51:47 +1000
commit7299d7d414febd319362fb79b101a77ca7b32f41 (patch)
tree19c5b8246c40f7a6de3601105d011e7c50d731a9
parent4aef60b99b53ac764fb01f95e2178c4977b0489e (diff)
Don't error on invalid budget ID for reimbursement claim
-rw-r--r--sstreasury/views.py2
1 files changed, 1 insertions, 1 deletions
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)
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.