1
0

follow-up 912e1a3a5b: password may be None if wallet is not file encrypted

This commit is contained in:
ThomasV
2025-02-13 11:52:46 +01:00
parent c3faadf23f
commit 22995b4a34

View File

@@ -464,7 +464,7 @@ class Daemon(Logger):
if wallet := self._wallets.get(wallet_key):
return wallet
wallet = self._load_wallet(path, password, upgrade=upgrade, config=self.config)
if wallet.requires_unlock():
if wallet.requires_unlock() and password is not None:
wallet.unlock(password)
wallet.start_network(self.network)
self.add_wallet(wallet)