mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 23:08:22 -05:00
StripeController: handle case where description is None.
This commit is contained in:
@@ -807,10 +807,10 @@ class StripeController(GoldPaymentController):
|
||||
else:
|
||||
try:
|
||||
passthrough, buyer_name = description.split('-', 1)
|
||||
except ValueError:
|
||||
except (AttributeError, ValueError):
|
||||
g.log.error('stripe_error on charge: %s', charge)
|
||||
raise
|
||||
|
||||
|
||||
webhook = Webhook(passthrough=passthrough,
|
||||
transaction_id=transaction_id, pennies=pennies, months=months)
|
||||
return status, webhook
|
||||
|
||||
Reference in New Issue
Block a user