From: Odin Hørthe Omdal Date: Sun, 3 Aug 2014 16:07:28 +0000 (+0200) Subject: Raw image mediatype had a non-unicode logging call X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1b4e199668ada5c2ec47df7432ab69e315dc0601;p=mediagoblin.git Raw image mediatype had a non-unicode logging call Was causing UnicodeDecodeError when file/folder was not ascii. Fixes bug #935. --- 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