From d50b36d3149589dd657e9af2c4f2c2e7a9a2da38 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 20 Sep 2018 00:55:09 +0200 Subject: [PATCH] daemon: suppress pop wallet failure follow-up 3ec0ceba3e7c65404d2579c64fac9449cbc450f1 related: #4126 --- electrum/daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/daemon.py b/electrum/daemon.py index 5db820f0d..e867882ba 100644 --- a/electrum/daemon.py +++ b/electrum/daemon.py @@ -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):