PEP8 cleanups

This commit is contained in:
Roberto Rosario
2015-06-24 17:11:24 -04:00
parent dd9b196110
commit 48df3dcafa
20 changed files with 24 additions and 82 deletions

View File

@@ -410,8 +410,6 @@ class DocumentVersion(models.Model):
logger.debug('Intermidiate file "%s" found.', cache_filename)
return open(cache_filename)
#converter = converter_class(file_object=open(cache_filename))
#converter.seek(0)
else:
logger.debug('Intermidiate file "%s" not found.', cache_filename)
@@ -539,7 +537,7 @@ class DocumentPage(models.Model):
file_object.write(page_image.getvalue())
except Exception as exception:
# Cleanup in case of error
logger.error('Error creating page cache file "%s".', cache_filename)
logger.error('Error creating page cache file "%s"; %s', cache_filename, exception)
fs_cleanup(cache_filename)
raise