DjangoUeditor
DjangoUeditor copied to clipboard
修改了save_upload_file函数在打开文件失败执行异常处理报错的问题。
修改了save_upload_file函数在打开文件失败执行异常处理代码时报“local variable 'f' referenced before assignment”的错误。
为什么会忽略try except呢? except块里return了,不会在f=None的情况下执行到第二个f.close()的。
额。。不小心看花眼了。 是觉得 开始的 f = None 可以不要