1
0

don't use bare except

This commit is contained in:
Bryan Stitt
2013-11-09 21:23:57 -08:00
parent f0eb0eccde
commit 225d8b83a3
9 changed files with 31 additions and 31 deletions

View File

@@ -103,7 +103,7 @@ a SimpleConfig instance then reads the wallet file.
import ast
try:
out = ast.literal_eval(out)
except:
except Exception:
print "type error for '%s': using default value"%key
out = default
@@ -154,7 +154,7 @@ a SimpleConfig instance then reads the wallet file.
return
try:
d = ast.literal_eval( data ) #parse raw data from reading wallet file
except:
except Exception:
raise IOError("Cannot read config file.")
self.user_config = d