WalletDB: raise different exc if cannot parse given file

closes #6292
This commit is contained in:
SomberNight 2020-06-27 16:03:03 +02:00
parent 01a2d12787
commit 9cd79ec2e5
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -83,7 +83,7 @@ class WalletDB(JsonDB):
d = ast.literal_eval(s)
labels = d.get('labels', {})
except Exception as e:
raise IOError("Cannot read wallet file")
raise WalletFileException("Cannot read wallet file. (parsing failed)")
self.data = {}
for key, value in d.items():
try: