We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5168b90 + fbb6e99 commit a03b861Copy full SHA for a03b861
pinax/stripe/actions/customers.py
@@ -93,7 +93,7 @@ def purge(customer):
93
try:
94
customer.stripe_customer.delete()
95
except stripe.InvalidRequestError as e:
96
- if not smart_str(e).startswith("No such customer:"):
+ if 'no such customer:' not in smart_str(e).lower():
97
# The exception was thrown because the customer was already
98
# deleted on the stripe side, ignore the exception
99
raise
0 commit comments