diff --git a/lib/storage.py b/lib/storage.py index e82c2e512..24c561fbd 100644 --- a/lib/storage.py +++ b/lib/storage.py @@ -67,7 +67,7 @@ class WalletStorage(PrintError): self.lock = threading.RLock() self.data = {} self.path = path - self.file_exists = os.path.exists(self.path) + self.file_exists = self.path and os.path.exists(self.path) self.modified = False self.pubkey = None