From 4b2eecbb6b5057845a25c7b416b069cb8ce6df11 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 4 Jan 2019 08:51:54 +0100 Subject: [PATCH] fixing print statement --- rowers/payments.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rowers/payments.py b/rowers/payments.py index 503d6f4b..bbeb12f4 100644 --- a/rowers/payments.py +++ b/rowers/payments.py @@ -30,7 +30,10 @@ def setrowerplans(): r.paidplan = paidplans[0] r.save() else: - print 'Could not set plan for ',r + try: + print 'Could not set plan for ',r.user.username + except: + pass def is_existing_customer(rower): if rower.country is not None and rower.customer_id is not None and rower.country != '':