__exit__

LockMgr.__exit__(exc_type, exc_val, exc_tb)[source]

When the context manager is finished or an exception occurs, we unlock all locks that were created during the context manager session.