[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: error handling
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: error handling |
Date: |
Tue, 11 May 2021 09:36:39 +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.
The following commit(s) were added to refs/heads/master by this push:
new a1e223a error handling
a1e223a is described below
commit a1e223a310f262efb324f9ee958f0afc27a3ed80
Author: MS <ms@taler.net>
AuthorDate: Tue May 11 09:36:36 2021 +0200
error handling
---
talermerchantdemos/donations/donations.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/talermerchantdemos/donations/donations.py
b/talermerchantdemos/donations/donations.py
index e11ea3a..3627b86 100644
--- a/talermerchantdemos/donations/donations.py
+++ b/talermerchantdemos/donations/donations.py
@@ -241,7 +241,7 @@ def donate(lang):
donation_receiver, "private/orders", dict(order=order)
)
- if order_resp.status_code != 200:
+ if not order_resp:
return err_abort(
order_resp.status_code,
message=gettext("Backend could not create the order")
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.