tIOError: add file path to exception message - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit a5a7a34c2dbc77ffff2c7b274f8e0985a1e30851 DIR parent 4476d37aee007073ff60aaf24e4186a927ad6cc7 HTML Author: ThomasV <thomasv@gitorious> Date: Sun, 15 Mar 2015 08:04:02 +0100 IOError: add file path to exception message Diffstat: M lib/wallet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -96,8 +96,8 @@ class WalletStorage(object): except: try: d = ast.literal_eval(data) #parse raw data from reading wallet file - except Exception: - raise IOError("Cannot read wallet file.") + except Exception as e: + raise IOError("Cannot read wallet file '%s'" % self.path) self.data = {} for key, value in d.items(): try: