verbose exceptions
This commit is contained in:
parent
3b645419ae
commit
a43c4fa698
@ -77,7 +77,7 @@ if __name__ == '__main__':
|
||||
try:
|
||||
sdata = fp2.read()
|
||||
data2 = json.loads(sdata)
|
||||
except:
|
||||
except Exception, ee:
|
||||
e = "<compare> Error loading data. Aborting.\n"
|
||||
if sdata:
|
||||
e += "Traceback: " + sdata
|
||||
|
||||
@ -193,7 +193,7 @@ if __name__ == '__main__':
|
||||
try:
|
||||
sdata = fp2.read()
|
||||
data = json.loads(sdata)
|
||||
except:
|
||||
except Exception, ee:
|
||||
e = "<inject> Error loading data. Aborting\n"
|
||||
if sdata:
|
||||
e += "Traceback: " + sdata
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user