Prevent non-Unicode SQLAlchemy warnings in most submission tests.

This commit  makes test_submission mostly warning-clean.
This commit is contained in:
Brett Smith
2012-07-08 10:04:06 -04:00
parent c7dfd4fba6
commit 5bd0adebd0
7 changed files with 32 additions and 32 deletions

View File

@@ -84,7 +84,7 @@ def mark_entry_failed(entry_id, exc):
atomic_update(mgg.database.MediaEntry,
{'_id': entry_id},
{u'state': u'failed',
u'fail_error': exc.exception_path,
u'fail_error': unicode(exc.exception_path),
u'fail_metadata': exc.metadata})
else:
_log.warn("No idea what happened here, but it failed: %r", exc)