tfix storage update_format - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d16fb3ee482d79bf9700c48c9f11d1db024457a6 DIR parent 9c7fd44b58b4eb18711e9206654f92c8b21d0aae HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 22 Aug 2016 11:59:24 +0200 fix storage update_format Diffstat: M lib/storage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/storage.py b/lib/storage.py t@@ -250,7 +250,7 @@ class WalletStorage(PrintError): self.put('wallet_type', 'standard') self.put('keystore', d) - elif wallet_type == 'standard': + elif wallet_type in['xpub', 'standard']: xpub = xpubs["x/"] xprv = xprvs["x/"] d = { t@@ -283,6 +283,8 @@ class WalletStorage(PrintError): if key == 'x1/' and seed: d['seed'] = seed self.put(key, d) + else: + raise self.put('master_public_key', None) self.put('master_public_keys', None)