diff --git a/server/polar/refund/schemas.py b/server/polar/refund/schemas.py index 7c8c15061e..b54c5bece6 100644 --- a/server/polar/refund/schemas.py +++ b/server/polar/refund/schemas.py @@ -104,9 +104,9 @@ def from_stripe( stripe_reason = stripe_refund.reason if stripe_refund.reason else "other" reason = RefundReason.from_stripe(stripe_refund.reason) - destination_details: dict[str, Any] = {} - if stripe_refund.destination_details: - destination_details = stripe_refund.destination_details + destination_details: dict[str, Any] = getattr( + stripe_refund, "destination_details", {} + ) status = RefundStatus.pending if stripe_refund.status: