error: add `hint` attribute to `SidedataHashError`
authorRaphaël Gomès <rgomes@octobus.net>
Thu, 18 Feb 2021 15:07:45 +0100
changeset 46625 3941fe53670d
parent 46624 357d2ea95ce9
child 46626 ee91966aec0f
error: add `hint` attribute to `SidedataHashError` This prevents an exception within an exception because `hint` does not exist. Differential Revision: https://phab.mercurial-scm.org/D10024
mercurial/error.py
--- a/mercurial/error.py	Fri Feb 19 11:17:16 2021 +0100
+++ b/mercurial/error.py	Thu Feb 18 15:07:45 2021 +0100
@@ -55,6 +55,7 @@
 
 class SidedataHashError(RevlogError):
     def __init__(self, key, expected, got):
+        self.hint = None
         self.sidedatakey = key
         self.expecteddigest = expected
         self.actualdigest = got