From 93573282bf8c966a19ebbd7a3b3c0cc37b521f4a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 23 Dec 2015 15:23:33 +0100 Subject: [PATCH] fix wallet saving --- electrum | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum b/electrum index e322331f5..d6c614e0b 100755 --- a/electrum +++ b/electrum @@ -256,7 +256,8 @@ def run_offline_command(config, config_options): func = getattr(cmd_runner, cmd.name) result = func(*args) # save wallet - wallet.storage.write() + if wallet: + wallet.storage.write() return result