changeset 26438: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
parents 4628b26f040e
children b50f5beadf3e
files mercurial/error.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):