X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/10dc1a5e84d23582a58ead2551ddf54a66b94496..ce463c2534ce26e07055092cce167fe5a510aa5a:/src/paypal/views.py diff --git a/src/paypal/views.py b/src/paypal/views.py index c78a19af3..c541ba80b 100644 --- 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: - 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()