diff --git a/lib/wallet.py b/lib/wallet.py index 6aaf3f371..0aee22393 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -133,6 +133,7 @@ class WalletStorage(object): self.write() def write(self): + assert not threading.currentThread().isDaemon() s = json.dumps(self.data, indent=4, sort_keys=True) with open(self.path,"w") as f: f.write(s)