Raw image mediatype had a non-unicode logging call

Was causing UnicodeDecodeError when file/folder was not ascii.
Fixes bug #935.
This commit is contained in:
Odin Hørthe Omdal 2014-08-03 18:07:28 +02:00 committed by Christopher Allan Webber
parent 4f1a5148cb
commit 1b4e199668

View File

@ -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