StripeController: handle case where description is None.

This commit is contained in:
Brian Simpson
2013-11-16 12:27:06 -05:00
parent 5dc0e7e367
commit b824f80810

View File

@@ -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