diff --git a/ghost/members-api/lib/stripe/index.js b/ghost/members-api/lib/stripe/index.js index 1cf8847e74..4cf7a1bf21 100644 --- a/ghost/members-api/lib/stripe/index.js +++ b/ghost/members-api/lib/stripe/index.js @@ -141,9 +141,13 @@ module.exports = class StripePaymentProcessor { const metadata = await this.storage.get(member); for (const data in metadata) { - const customer = await this.getCustomer(data.customer_id); - if (!customer.deleted) { - return customer; + try { + const customer = await this.getCustomer(data.customer_id); + if (!customer.deleted) { + return customer; + } + } catch (e) { + console.log(e); } }