Fix a PEP8 error
This commit is contained in:
parent
8ba3bfc89f
commit
3769e00c8c
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ class OrderConfirmationView(DetailView):
|
||||||
stripe_subscription_obj = subscription_result.get('response_object')
|
stripe_subscription_obj = subscription_result.get('response_object')
|
||||||
# Check if the subscription was approved and is active
|
# Check if the subscription was approved and is active
|
||||||
if (stripe_subscription_obj is None
|
if (stripe_subscription_obj is None
|
||||||
or stripe_subscription_obj.status != 'active'):
|
or stripe_subscription_obj.status != 'active'):
|
||||||
msg = subscription_result.get('error')
|
msg = subscription_result.get('error')
|
||||||
messages.add_message(self.request, messages.ERROR, msg,
|
messages.add_message(self.request, messages.ERROR, msg,
|
||||||
extra_tags='failed_payment')
|
extra_tags='failed_payment')
|
||||||
|
|
Loading…
Reference in a new issue