ws: encoded content in quoted-printable before sending it to log, to be sure it is ASCII compatible
This commit is contained in:
parent
d2367410b1
commit
e66a03cc8d
|
@ -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')
|
||||
|
|
Reference in New Issue