#NEWLINE# def release( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# lock = Lock . objects . get ( name = lock . name , creation_datetime = self . creation_datetime ) #NEWLINE# #UNINDENT# except Lock . DoesNotExist : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# lock . delete ( )