diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-09-29 15:29:43 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-09-29 15:29:43 +0200 |
commit | 6a8ddc88cebb92791db5a047008602c574186f61 (patch) | |
tree | 3d95c6b0adedbbfd03c88b1378dd40f7bc9ba70b /talerbank/app/middleware.py | |
parent | cba0af71df514f90fcc113db6d5310faa9296a61 (diff) | |
download | bank-6a8ddc88cebb92791db5a047008602c574186f61.tar.gz bank-6a8ddc88cebb92791db5a047008602c574186f61.tar.bz2 bank-6a8ddc88cebb92791db5a047008602c574186f61.zip |
UI
Diffstat (limited to 'talerbank/app/middleware.py')
-rw-r--r-- | talerbank/app/middleware.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/talerbank/app/middleware.py b/talerbank/app/middleware.py index 234baed..15fc1e3 100644 --- a/talerbank/app/middleware.py +++ b/talerbank/app/middleware.py @@ -89,7 +89,7 @@ class ExceptionMiddleware: # after the exception gets managed. self.render = { "/profile": "profile", - "/register": "index", + "/accounts/register": "index", "/public-accounts": "index", "/pin/verify": "profile", "/withdraw": "profile" @@ -116,7 +116,7 @@ class ExceptionMiddleware: # @param request Django-specific HTTP request. # @param exception the exception raised from the bank. def process_exception(self, request, exception): - + LOGGER.warning("Exception", exception) # See if we manage this exception. Return None if not. exc_class = None for e in self.excs: @@ -141,5 +141,4 @@ class ExceptionMiddleware: True, False, exception.hint return redirect(render_to) - -# [1] https://git.taler.net/exchange.git/tree/src/include/taler_error_codes.h#n1502 +# [1] https://git.taler.net/exchange.git/tree/src/include/taler_error_codes.h |