[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:30:17 +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 1c2e537 error handling
1c2e537 is described below
commit 1c2e5370ff4df90c300a553081429a9669a272c1
Author: MS <ms@taler.net>
AuthorDate: Tue May 11 09:30:14 2021 +0200
error handling
---
talermerchantdemos/donations/donations.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/talermerchantdemos/donations/donations.py
b/talermerchantdemos/donations/donations.py
index 3c347e9..e11ea3a 100644
--- a/talermerchantdemos/donations/donations.py
+++ b/talermerchantdemos/donations/donations.py
@@ -240,6 +240,13 @@ def donate(lang):
order_resp = backend_instanced_post(
donation_receiver, "private/orders", dict(order=order)
)
+
+ if order_resp.status_code != 200:
+ return err_abort(
+ order_resp.status_code,
+ message=gettext("Backend could not create the order")
+ )
+
order_id = order_resp["order_id"]
return flask.redirect(
flask.url_for(
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-merchant-demos] branch master updated: error handling,
gnunet <=