Fixed regression caused by c8d5e26b4c

This commit is contained in:
Roberto Rosario
2011-02-15 19:56:03 -04:00
parent a154e762b4
commit 0eb9774618
2 changed files with 3 additions and 3 deletions

View File

@@ -536,7 +536,7 @@ def staging_file_preview(request, staging_file_id):
try:
filepath = StagingFile.get(staging_file_id).filepath
output_file = convert(filepath, size=STAGING_FILES_PREVIEW_SIZE, extra_options=tranformation_string, cleanup=False)
output_file = convert(filepath, size=STAGING_FILES_PREVIEW_SIZE, extra_options=tranformation_string, cleanup_files=False)
return serve_file(request, File(file=open(output_file, 'r')))
except Exception, e:
return serve_file(request, File(file=open('%simages/1297211435_error.png' % settings.MEDIA_ROOT, 'r')))