commit de4b5b1b6e49e1d2d16f47bc3e47b85e63610648
parent 48f569ee079d84570f79fef5a1bfa1599cc9d70c
Author: MS <ms@taler.net>
Date: Wed, 12 May 2021 10:10:48 +0200
error handling
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/talermerchantdemos/httpcommon/__init__.py b/talermerchantdemos/httpcommon/__init__.py
@@ -72,6 +72,7 @@ def backend_post(backend_url, endpoint, json, auth_token=None):
# @param params (dict type of) URL parameters to append to the request.
# @return the JSON response from the backend, or a error response
# if something unexpected happens.
+@exception_handler
def backend_get(backend_url, endpoint, params, auth_token=None):
headers = dict()
if auth_token is not None: