gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] branch master updated: passing data to 500 res


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: passing data to 500 responses
Date: Tue, 31 Oct 2017 16:38:24 +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 a80b2a3  passing data to 500 responses
a80b2a3 is described below

commit a80b2a346f13cc8c7f86d02c2f2c634ae4ecfa1b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Oct 31 16:37:50 2017 +0100

    passing data to 500 responses
---
 talerbank/app/views.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index f1721c3..c53ba14 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -234,13 +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) 
+        return JsonResponse(dict(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) 
+        return JsonResponse(dict(error="Internal server error", status=500))
     except CurrencyMismatch:
         logger.error("currency mismatch internal to the bank, should never 
happen here")
-        return JsonResponse(error="Internal server error", status=500) 
+        return JsonResponse(dict(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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]