From ad02b799127942ea8a3bdf9ec202178d8a26a26c Mon Sep 17 00:00:00 2001 From: bsimpson63 Date: Mon, 13 Feb 2012 11:49:45 -0800 Subject: [PATCH] Check that gold_subscr_id is not blank. --- r2/r2/controllers/ipn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/ipn.py b/r2/r2/controllers/ipn.py index 95639cbf1..159e71170 100644 --- a/r2/r2/controllers/ipn.py +++ b/r2/r2/controllers/ipn.py @@ -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