mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Check that gold_subscr_id is not blank.
This commit is contained in:
committed by
Keith Mitchell
parent
e72e3c74be
commit
ad02b79912
@@ -132,7 +132,7 @@ def existing_subscription(subscr_id, paying_id):
|
||||
return "deleted account"
|
||||
|
||||
if should_set_subscriber:
|
||||
if hasattr(account, "gold_subscr_id"):
|
||||
if hasattr(account, "gold_subscr_id") and account.gold_subscr_id:
|
||||
g.log.warning("Attempted to set subscr_id (%s) for account (%d) " +
|
||||
"that already has one." % (subscr_id, account_id))
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user