From b69ab864582ae138829a5a15c57f1095b1f5c0f3 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 21 Feb 2024 13:40:31 +0100 Subject: [PATCH] Stripe: Fix crash in data shredder --- src/pretix/plugins/stripe/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/stripe/payment.py b/src/pretix/plugins/stripe/payment.py index f7f7cc103..ac56c17c5 100644 --- a/src/pretix/plugins/stripe/payment.py +++ b/src/pretix/plugins/stripe/payment.py @@ -758,7 +758,7 @@ class StripeMethod(BasePaymentProvider): ) new = {k: v for k, v in d.items() if k in keys} - if d.get("latest_charge"): + if d.get("latest_charge") and not isinstance(d["latest_charge"], str): keys = ( 'amount', 'amount_captured', 'amount_refunded', 'application', 'application_fee_amount', 'balance_transaction', 'captured', 'created', 'currency', 'description', 'destination',