Commit 6b1ae3d3 authored by Marko Kuder's avatar Marko Kuder

Update tasks.py: ignore unicode error when logging

parent e71353a4
......@@ -453,7 +453,7 @@ def save_qa_result(resource, qa_result, log):
qa = QA.create(resource.id)
model.Session.add(qa)
else:
log.info(u'QA from before: %r', qa)
log.info(u'QA from before: %r', unicode(qa, errors='ignore'))
for key in ('openness_score', 'openness_score_reason', 'format'):
setattr(qa, key, qa_result[key])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment