gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-merchant-demos] branch master updated (d656046 -> de4b5b1)


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated (d656046 -> de4b5b1)
Date: Wed, 12 May 2021 10:10:52 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a change to branch master
in repository taler-merchant-demos.

    from d656046  error handling
     new 48f569e  fix condition check
     new de4b5b1  error handling

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 talermerchantdemos/httpcommon/__init__.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/talermerchantdemos/httpcommon/__init__.py 
b/talermerchantdemos/httpcommon/__init__.py
index 9708721..76159ed 100644
--- a/talermerchantdemos/httpcommon/__init__.py
+++ b/talermerchantdemos/httpcommon/__init__.py
@@ -38,7 +38,7 @@ def exception_handler(func):
 @exception_handler
 def backend_post(backend_url, endpoint, json, auth_token=None):
     headers = dict()
-    if auth_token is not None:
+    if auth_token:
         headers["Authorization"] = "Bearer " + auth_token
     final_url = urljoin(backend_url, endpoint)
     print("POSTing to: " + final_url)
@@ -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:

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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