commit 48f569ee079d84570f79fef5a1bfa1599cc9d70c
parent d65604647318a95f77970a64bbe5f24905e26b3f
Author: MS <ms@taler.net>
Date: Tue, 11 May 2021 09:55:25 +0200
fix condition check
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)