diff --git a/djstripe/models.py b/djstripe/models.py
index <HASH>..<HASH> 100644
--- a/djstripe/models.py
+++ b/djstripe/models.py
@@ -193,7 +193,7 @@ Use ``Customer.sources`` and ``Customer.subscriptions`` to access them.
         try:
             self._api_delete()
         except InvalidRequestError as exc:
-            if str(exc).startswith("No such customer:"):
+            if "No such customer:" in str(exc):
                 # The exception was thrown because the stripe customer was already
                 # deleted on the stripe side, ignore the exception
                 pass
API Change breaks customer deleted on stripe sync (#<I>)

When deleting a customer, check the entire error message string for "No such customer", as in newer versions of the API it is not at the beginning of the string.