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"
|
cherrypy.response.headerMap[ u"Content-Type" ] = u"image/png"
|
||||||
|
|
||||||
# attempt to open the file as an image
|
# attempt to open the file as an image
|
||||||
|
image_buffer = None
|
||||||
try:
|
try:
|
||||||
image = Upload_file.open_image( file_id )
|
image = Upload_file.open_image( file_id )
|
||||||
|
|
||||||
|
|
Reference in New Issue