Browse Source

followup: call super().__init__() for WalletFileException descendants

cases missed in 57bd291491
master
SomberNight 2 years ago
parent
commit
76e547a084
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/crypto.py

4
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):

Loading…
Cancel
Save