Skip to content

When pausing a subscription which has already been deleted, stripe._error.InvalidRequestError: Request x: No such subscription: 'y' #1455

@chrisjsimpson

Description

@chrisjsimpson

Is your feature request related to a problem? Please describe.
When pausing a subscription which has already been deleted, the following exception is thown:

subscribie/subscribie/blueprints/admin/__init__.py", line 411, in do_pause_stripe_subscription_payment_collection                  
    stripe_subscription = stripe.Subscription.retrieve(                                                                 
stripe._error.InvalidRequestError: Request x: No such subscription: 'y'

And the subscribie stored subscription is not marked as paused/canceled (the subscription should be marked as cancelled in this case)

Describe the solution you'd like
Handle gracefully, (the subscription should be marked as cancelled in this case)

Describe alternatives you've considered

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions