From: Boris Bobrov Date: Mon, 1 Feb 2016 00:43:36 +0000 (+0100) Subject: Fix occurence of unicode() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=41076dc96bbf273c5a04978e2046ea8738b1eee0;p=mediagoblin.git Fix occurence of unicode() Fix unicode() -> six.text_type() --- diff --git a/mediagoblin/processing/__init__.py b/mediagoblin/processing/__init__.py index 663d1bb5..29345227 100644 --- a/mediagoblin/processing/__init__.py +++ b/mediagoblin/processing/__init__.py @@ -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': {}})