fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update librarian
[wolnelektury.git]
/
src
/
paypal
/
views.py
diff --git
a/src/paypal/views.py
b/src/paypal/views.py
index
c78a19a
..
c541ba8
100644
(file)
--- a/
src/paypal/views.py
+++ b/
src/paypal/views.py
@@
-25,7
+25,7
@@
def paypal_form(request, app=False):
try:
approval_url = agreement_approval_url(amount, app=app)
except PaypalError as e:
try:
approval_url = agreement_approval_url(amount, app=app)
except PaypalError as e:
- return render(request, 'paypal/error_page.html', {'error':
e.message
})
+ return render(request, 'paypal/error_page.html', {'error':
str(e)
})
return HttpResponseRedirect(approval_url)
else:
form = PaypalSubscriptionForm()
return HttpResponseRedirect(approval_url)
else:
form = PaypalSubscriptionForm()