X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/10dc1a5e84d23582a58ead2551ddf54a66b94496..733a35d165f8fa095c3dfcbb74ac7aae3c320a2e:/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()