tdaemon: suppress pop wallet failure - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d50b36d3149589dd657e9af2c4f2c2e7a9a2da38 DIR parent cedd518aead91916ae68f96261908986a2a7909b HTML Author: SomberNight <somber.night@protonmail.com> Date: Thu, 20 Sep 2018 00:55:09 +0200 daemon: suppress pop wallet failure follow-up 3ec0ceba3e7c65404d2579c64fac9449cbc450f1 related: #4126 Diffstat: M electrum/daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/daemon.py b/electrum/daemon.py t@@ -251,7 +251,8 @@ class Daemon(DaemonThread): return self.wallets.get(path) def stop_wallet(self, path): - wallet = self.wallets.pop(path) + wallet = self.wallets.pop(path, None) + if not wallet: return wallet.stop_threads() def run_cmdline(self, config_options):