Commits

Anonymous committed 593be7c

also use LockError here

  • Participants
  • Parent commits 4f5bde0

Comments (0)

Files changed (1)

dogpile/readwrite_lock.py

         self.condition.acquire()
         try:
             if self.current_sync_operation is not threading.currentThread():
-                raise Exception("Synchronizer error - current thread doesn't "
+                raise LockError("Synchronizer error - current thread doesn't "
                                 "have the write lock")
 
             # reset the current sync operation so