IOError: add file path to exception message
This commit is contained in:
parent
4476d37aee
commit
a5a7a34c2d
|
@ -96,8 +96,8 @@ class WalletStorage(object):
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
d = ast.literal_eval(data) #parse raw data from reading wallet file
|
d = ast.literal_eval(data) #parse raw data from reading wallet file
|
||||||
except Exception:
|
except Exception as e:
|
||||||
raise IOError("Cannot read wallet file.")
|
raise IOError("Cannot read wallet file '%s'" % self.path)
|
||||||
self.data = {}
|
self.data = {}
|
||||||
for key, value in d.items():
|
for key, value in d.items():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue