From 1b4e199668ada5c2ec47df7432ab69e315dc0601 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Odin=20H=C3=B8rthe=20Omdal?= Date: Sun, 3 Aug 2014 18:07:28 +0200 Subject: [PATCH] Raw image mediatype had a non-unicode logging call Was causing UnicodeDecodeError when file/folder was not ascii. Fixes bug #935. --- mediagoblin/media_types/raw_image/processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediagoblin/media_types/raw_image/processing.py b/mediagoblin/media_types/raw_image/processing.py index 55a48b50..5ff54cf3 100644 --- a/mediagoblin/media_types/raw_image/processing.py +++ b/mediagoblin/media_types/raw_image/processing.py @@ -67,8 +67,8 @@ class InitialRawProcessor(InitialProcessor): # Extract the biggest preview and write it as our working image md.previews[-1].write_to_file( self.process_filename.encode('utf-8')) - self.process_filename += ".jpg" - _log.debug('Wrote new file from {0} to preview (jpg) {1}'.format( + self.process_filename += '.jpg' + _log.debug(u'Wrote new file from {0} to preview (jpg) {1}'.format( self._original_raw, self.process_filename)) # Override the namebuilder with our new jpg-based name -- 2.25.1