Fix PEP8 error

This commit is contained in:
PCoder 2017-12-24 18:33:24 +01:00
parent a34bd83c5e
commit a3f212a59e

View file

@ -409,11 +409,8 @@ class MembershipPaymentView(LoginRequiredMixin, IsNotMemberMixin, FormView):
) )
# Check if call to create subscription was ok # Check if call to create subscription was ok
if (stripe_subscription_obj is None or if (stripe_subscription_obj is None or
( (stripe_subscription_obj.status != 'active' and
stripe_subscription_obj.status != 'active' and stripe_subscription_obj.status != 'trialing')):
stripe_subscription_obj.status != 'trialing'
)
):
context.update({ context.update({
'paymentError': subscription_result.get('error'), 'paymentError': subscription_result.get('error'),
'form': form 'form': form