error: make lock inheritance contract violations a subclass of RuntimeError
authorSiddharth Agarwal <sid0@fb.com>
Fri, 25 Sep 2015 12:56:05 -0700
changeset 26438 024644b1900b
parent 26437 4628b26f040e
child 26439 b50f5beadf3e
error: make lock inheritance contract violations a subclass of RuntimeError This is more appropriate, per Pierre-Yves David.
mercurial/error.py
--- a/mercurial/error.py	Sat Sep 26 12:19:39 2015 +0900
+++ b/mercurial/error.py	Fri Sep 25 12:56:05 2015 -0700
@@ -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):