tstorage: add a sanity check - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 416b68705493a232818c28817129a126791147e8 DIR parent 78258a3a950921dd7e160eec7a8ced7055e8a7e6 HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 26 Oct 2018 19:31:20 +0200 storage: add a sanity check see #4803 Diffstat: M electrum/storage.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum/storage.py b/electrum/storage.py t@@ -175,6 +175,8 @@ class WalletStorage(JsonDB): self.print_error('Failed to convert label to json format', key) continue self.data[key] = value + if not isinstance(self.data, dict): + raise WalletFileException("Malformed wallet file (not dict)") # check here if I need to load a plugin t = self.get('wallet_type')