Skip to content

Commit 1296222

Browse files
surajitsurajit
authored andcommitted
minor fix in exception name
1 parent 4cf704d commit 1296222

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stripe_api/payment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
stripe.api_key = STRIPE_SECRET_KEY
66

77

8-
class StripeError(Exception):
8+
class StripeException(Exception):
99
pass
1010

1111

12-
class PaymentIntentError(StripeError):
12+
class PaymentIntentException(StripeException):
1313
pass
1414

1515

@@ -24,7 +24,7 @@ def create_payment_intent(
2424
metadata={"organization_id": organization_id, "charge_type": charge_type},
2525
)
2626
except stripe.error.InvalidRequestError as e:
27-
raise PaymentIntentError(e)
27+
raise PaymentIntentException(e)
2828

2929

3030
def get_payment_intent(payment_intent_id):

0 commit comments

Comments
 (0)