changeset 46664:3941fe53670d

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
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Feb 2021 15:07:45 +0100
parents 357d2ea95ce9
children ee91966aec0f
files mercurial/error.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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