diff options
author | Joar Wandborg <git@wandborg.com> | 2012-04-02 15:08:22 +0200 |
---|---|---|
committer | Joar Wandborg <git@wandborg.com> | 2012-04-02 15:08:22 +0200 |
commit | c8bee965ad2b7ffe4711fafda7b16b8618944d54 (patch) | |
tree | ab8962933dc582f3a1d07c3bd8fc3d3f9945fece | |
parent | f9d62eccf42d9b3c39593a922b8d9666c70b39f7 (diff) | |
download | mediagoblin-c8bee965ad2b7ffe4711fafda7b16b8618944d54.tar.lz mediagoblin-c8bee965ad2b7ffe4711fafda7b16b8618944d54.tar.xz mediagoblin-c8bee965ad2b7ffe4711fafda7b16b8618944d54.zip |
gmg env_import shouldn't crash on unicode ...
characters in media titles
-rw-r--r-- | mediagoblin/gmg_commands/import_export.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/import_export.py b/mediagoblin/gmg_commands/import_export.py index 20cc8fe4..9d79afb4 100644 --- a/mediagoblin/gmg_commands/import_export.py +++ b/mediagoblin/gmg_commands/import_export.py @@ -67,7 +67,7 @@ def _import_media(db, args): for entry in db.MediaEntry.find(): for name, path in entry.media_files.items(): _log.info('Importing: {0} - {1}'.format( - entry.title, + entry.title.encode('ascii', 'replace'), name)) media_file = mg_globals.public_store.get_file(path, mode='wb') |