1
0

interface was suppressing storage r/w exceptions

This commit is contained in:
SomberNight
2019-05-21 18:11:49 +02:00
parent cf01788c86
commit fecef91ee0
2 changed files with 4 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ class WalletStorage(Logger):
DB_Class = JsonDB
self.logger.info(f"wallet path {self.path}")
self.pubkey = None
# TODO we should test r/w permissions here (whether file exists or not)
if self.file_exists():
with open(self.path, "r", encoding='utf-8') as f:
self.raw = f.read()