projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6cc0c
)
Fix occurence of unicode()
author
Boris Bobrov
<breton@cynicmansion.ru>
Mon, 1 Feb 2016 00:43:36 +0000
(
01:43
+0100)
committer
Boris Bobrov
<breton@cynicmansion.ru>
Mon, 1 Feb 2016 00:43:36 +0000
(
01:43
+0100)
Fix unicode() -> six.text_type()
mediagoblin/processing/__init__.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/processing/__init__.py
b/mediagoblin/processing/__init__.py
index 663d1bb5dc54b3a8790168636cef545fc7b533d3..29345227d66c10e51954ba4f8d7451731ebc2322 100644
(file)
--- 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': {}})