#NEWLINE# def __exit__( self , exc_type , * _ ) : #NEWLINE# #INDENT# if ( exc_type == OtherInstanceError ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . log . debug ( 'Releasing lock.' ) #NEWLINE# self . delete_group ( exc_type . task_identifier )