Fixing "local variable 'image_buffer' referenced before assignment" error.
This commit is contained in:
parent
b3d5187c6c
commit
0f30c89ff3
|
@ -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 )
|
||||
|
||||
|
|
Reference in New Issue