﻿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
9133	Add LockException to locks for completeness	magneto	nobody	"in django/core/files/locks.py


All is well, except for the Specific Exception ""Resource Unavailable"" (IO Error #11) which usually means the file is already locked.  

Rather then doing an 

{{{
except IOError, err:
     if err[0] == 11:
         ""Do something with Already Locked""
    else:
        raise
}}}
on can simply have a LockException in locks 

Not sure if this was a design thought at the beginning, or just a little omission.

This follows from the version on  http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203

I'm not sure how to do this on windows, perhaps someone else knows?

"		closed	File uploads/storage	dev		wontfix	locks		Unreviewed	1	0	0	0	0	0
