From 41076dc96bbf273c5a04978e2046ea8738b1eee0 Mon Sep 17 00:00:00 2001 From: Boris Bobrov Date: Mon, 1 Feb 2016 01:43:36 +0100 Subject: [PATCH] Fix occurence of unicode() Fix unicode() -> six.text_type() --- mediagoblin/processing/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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': {}}) -- 2.25.1