From fc8b94c2ce617ef8e11c4fb9a7af670e4b51f80c Mon Sep 17 00:00:00 2001 From: Jeff L Date: Wed, 10 Sep 2014 18:24:28 -0700 Subject: [PATCH] fix ascii encoding issue in debug output --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index eb54e97b..8229156c 100755 --- a/app.py +++ b/app.py @@ -319,8 +319,8 @@ def make_single_call(): play_or_say(resp, campaign['msg_rep_intro'], name=full_name) if app.debug: - print u'DEBUG: Call #{}, {} ({}) from {} in make_single_call()'.format( - i, full_name, to_phone, params['userPhone']) + print u'DEBUG: Call #{}, {} ({}) from {} : make_single_call()'.format(i, + full_name.encode('ascii', 'ignore'), to_phone, params['userPhone']) resp.dial(to_phone, callerId=params['userPhone'], timeLimit=app.config['TW_TIME_LIMIT'],