Fix occurence of unicode()
authorBoris Bobrov <breton@cynicmansion.ru>
Mon, 1 Feb 2016 00:43:36 +0000 (01:43 +0100)
committerBoris Bobrov <breton@cynicmansion.ru>
Mon, 1 Feb 2016 00:43:36 +0000 (01:43 +0100)
Fix unicode() -> six.text_type()

mediagoblin/processing/__init__.py

index 663d1bb5dc54b3a8790168636cef545fc7b533d3..29345227d66c10e51954ba4f8d7451731ebc2322 100644 (file)
@@ -330,7 +330,8 @@ def mark_entry_failed(entry_id, exc):
         atomic_update(mgg.database.MediaEntry,
             {'id': entry_id},
             {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': {}})