export: Handle Unicode titles better in logging
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 15 Nov 2011 10:21:15 +0000 (11:21 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 15 Nov 2011 10:21:15 +0000 (11:21 +0100)
commita9c7af90408c3537f42763e63862a2ae44bcc368
treea4c65c55decbd839d85ef6b762d57ca4dd2a2ca7
parent2b7aa99d3c221e713a95b664491f35612f9023cc
export: Handle Unicode titles better in logging

log("ascii %s" % unicode_string) tries to convert unicode
to ascii, which might fail.

Better use log(u"unicode format %s" % unicode_string) and
let the logging framework handle the conversion. This works
much better and the exceptions still happening aren't
stopping the main app.

Also remove one useless import.
mediagoblin/gmg_commands/import_export.py