[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: fix other None-returnin
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: fix other None-returning view |
Date: |
Tue, 31 Oct 2017 15:52:47 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 5e8d822 fix other None-returning view
5e8d822 is described below
commit 5e8d8225c8bbc4b4e4e45d049beb126e0d59b337
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Oct 31 15:52:29 2017 +0100
fix other None-returning view
---
talerbank/app/views.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index b42ba11..fb2d4f2 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -234,14 +234,13 @@ def pin_tan_verify(request):
return redirect("profile")
except SameAccountException:
logger.error("Odd situation: SameAccountException should NOT occur in
this function")
+ return JsonResponse(error="Internal server error", status=500)
except BadFormatAmount:
logger.error("parsing MAX_DEBT or MAX_BANK_DEBT failed")
+ return JsonResponse(error="Internal server error", status=500)
except CurrencyMismatch:
- # The only currency mismatch which can occur here is
- # between the bank and credit/debit accounts', should
- # never happen.
- return HttpResponse("Internal server error", status=500)
-
+ logger.error("currency mismatch internal to the bank, should never
happen here")
+ return JsonResponse(error="Internal server error", status=500)
request_url = urljoin(exchange_url, "admin/add/incoming")
res = requests.post(request_url, json=json_body)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: fix other None-returning view,
gnunet <=