From e2a25964795f80fc343f21c70eaa21c97a1d3f35 Mon Sep 17 00:00:00 2001 From: thomasv Date: Mon, 17 Dec 2012 15:24:06 +0100 Subject: [PATCH] fix: case where wdir path is empty (portable wallet) --- lib/verifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/verifier.py b/lib/verifier.py index 836fa6b90..51e41d7a5 100644 --- a/lib/verifier.py +++ b/lib/verifier.py @@ -289,7 +289,7 @@ class WalletVerifier(threading.Thread): def path(self): wdir = self.config.get('blockchain_headers_path', user_dir()) - if not os.path.exists( wdir ): os.mkdir(wdir) + if wdir and not os.path.exists( wdir ): os.mkdir(wdir) return os.path.join( wdir, 'blockchain_headers') def init_headers_file(self):