gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-merchant-demos] 01/02: fix condition check


From: gnunet
Subject: [taler-taler-merchant-demos] 01/02: fix condition check
Date: Wed, 12 May 2021 10:10:53 +0200

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

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

commit 48f569ee079d84570f79fef5a1bfa1599cc9d70c
Author: MS <ms@taler.net>
AuthorDate: Tue May 11 09:55:25 2021 +0200

    fix condition check
---
 talermerchantdemos/httpcommon/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/talermerchantdemos/httpcommon/__init__.py 
b/talermerchantdemos/httpcommon/__init__.py
index 9708721..6ff4696 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)

-- 
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]