From 76e547a08429ab0c75c76114847a90e7da46a3f4 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 17 Jan 2024 14:42:19 +0000 Subject: [PATCH] followup: call super().__init__() for WalletFileException descendants cases missed in 57bd29149135cf1a2b17439116acebdf4a934942 --- electrum/crypto.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electrum/crypto.py b/electrum/crypto.py index e3bfe6a3b..57a99dfc1 100644 --- a/electrum/crypto.py +++ b/electrum/crypto.py @@ -195,6 +195,8 @@ assert PW_HASH_VERSION_LATEST in SUPPORTED_PW_HASH_VERSIONS class UnexpectedPasswordHashVersion(InvalidPassword, WalletFileException): def __init__(self, version): + InvalidPassword.__init__(self) + WalletFileException.__init__(self) self.version = version def __str__(self): @@ -206,6 +208,8 @@ class UnexpectedPasswordHashVersion(InvalidPassword, WalletFileException): class UnsupportedPasswordHashVersion(InvalidPassword, WalletFileException): def __init__(self, version): + InvalidPassword.__init__(self) + WalletFileException.__init__(self) self.version = version def __str__(self):