diff mercurial/error.py @ 27064:024644b1900b

error: make lock inheritance contract violations a subclass of RuntimeError This is more appropriate, per Pierre-Yves David.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 25 Sep 2015 12:56:05 -0700 (2015-09-25)
parents e75da738add5
children b13fdcc4e700
line wrap: on
line diff
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -115,7 +115,7 @@
     pass
 
 # LockError is for errors while acquiring the lock -- this is unrelated
-class LockInheritanceContractViolation(AssertionError):
+class LockInheritanceContractViolation(RuntimeError):
     pass
 
 class ResponseError(Exception):