Skip to content

Commit

Permalink
fix ascii encoding issue in debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
rubbingalcoholic committed Sep 11, 2014
1 parent 05a48dd commit fc8b94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit fc8b94c

Please sign in to comment.