summaryrefslogtreecommitdiff
path: root/talerblog/blog/blog.py
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-05-15 12:10:42 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-05-15 12:10:42 +0530
commit0af88f048419ea32a0732d8f0c6a4bb92ee16df1 (patch)
treedb69fc21223f70ae65768a4e610bbe7d011821c4 /talerblog/blog/blog.py
parent60355c575df31c766b56832e1f18636e6a81c9b0 (diff)
downloadblog-master.tar.gz
blog-master.tar.bz2
blog-master.zip
Diffstat (limited to 'talerblog/blog/blog.py')
-rw-r--r--talerblog/blog/blog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index a0a9784..ae314cc 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -214,7 +214,7 @@ def refund(order_id):
session_id = flask.session.get("session_id", "")
pay_params = dict(order_id=order_id, session_id=session_id)
pay_status = backend_get("check-payment", pay_params)
- if not pay_status.paid:
+ if not pay_status.get("paid"):
err_abort(
402,
message="You did not pay for this article (nice try!)",