ws: encoded content in quoted-printable before sending it to log, to be sure it is ASCII compatible

This commit is contained in:
Benjamin Dauvergne 2012-12-10 18:57:52 +01:00
parent d2367410b1
commit e66a03cc8d
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class BlackboardConnector(object):
try:
x = etree.XML(r.content.replace('ISO-8859-1', 'UTF-8'))
except ExpatError:
logger.exception('ExpatError %s', r.content)
logger.exception('ExpatError in « %s »', r.content.encode('quopri_codec'))
return False, 'Erreur BlackBoard'
info_message_elt = x.find('infoMessage')
course_elts = x.findall('*/course')