check for zero length stripe token

pull/1/head
Raymond Yee 2012-11-14 11:42:52 -08:00
parent 346d4d8980
commit 7fe502ecdf
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ class Processor(baseprocessor.Processor):
def make_account(self, user, token=None):
"""returns a payment.models.Account based on stripe token and user"""
if token is None:
if token is None or len(token) == 0:
raise StripelibError("input token is None", None)
sc = StripeClient()