Fix occurence of unicode()
Fix unicode() -> six.text_type()
This commit is contained in:
@@ -330,7 +330,8 @@ def mark_entry_failed(entry_id, exc):
|
|||||||
atomic_update(mgg.database.MediaEntry,
|
atomic_update(mgg.database.MediaEntry,
|
||||||
{'id': entry_id},
|
{'id': entry_id},
|
||||||
{u'state': u'failed',
|
{u'state': u'failed',
|
||||||
u'fail_error': u'Unhandled exception: {0}'.format(unicode(exc)),
|
u'fail_error': u'Unhandled exception: {0}'.format(
|
||||||
|
six.text_type(exc)),
|
||||||
u'fail_metadata': {}})
|
u'fail_metadata': {}})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user