witten
/
luminotes
Archived
1
0
Fork 0

Fixing "local variable 'image_buffer' referenced before assignment" error.

This commit is contained in:
Dan Helfman 2008-04-22 19:35:33 +00:00
parent b3d5187c6c
commit 0f30c89ff3
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ class Files( object ):
cherrypy.response.headerMap[ u"Content-Type" ] = u"image/png"
# attempt to open the file as an image
image_buffer = None
try:
image = Upload_file.open_image( file_id )