﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20427	UnboundLocalError when file lock fails in storage.py	mattias@…	nobody	"After attempting to upload an image in the admin interface a received the following error:

UnboundLocalError at /admin/api/video/9/
local variable '_file' referenced before assignment

Origin of the error:
site-packages/django/core/files/storage.py in _save
209:  if _file is not None: 

Most likely the lock attempt in the try block fails because the write is on an NFS share and there is some issue with permissions or something.
I personally think that the script still shouldn't crash like this."	Bug	closed	File uploads/storage	1.5	Normal	fixed	storage.py, UnboundLocalError		Accepted	0	0	0	0	0	0
