[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r19227: {torflow} And already there's fun new exceptions. (torflow/trunk/NetworkScanners)
Author: mikeperry
Date: 2009-04-06 06:46:10 -0400 (Mon, 06 Apr 2009)
New Revision: 19227
Modified:
torflow/trunk/NetworkScanners/libsoat.py
Log:
And already there's fun new exceptions.
Modified: torflow/trunk/NetworkScanners/libsoat.py
===================================================================
--- torflow/trunk/NetworkScanners/libsoat.py 2009-04-06 10:43:16 UTC (rev 19226)
+++ torflow/trunk/NetworkScanners/libsoat.py 2009-04-06 10:46:10 UTC (rev 19227)
@@ -876,7 +876,7 @@
name+=":"+e.__class__.__name__
if "line" in e.e.__dict__:
name+=":"+str(e.e.line)
- if "token" in e.e.__dict__:
+ if "token" in e.e.__dict__ and "type" in e.e.token.__dict__:
name+=":"+JSTokenNames[e.e.token.type]
# XXX: Any other things we want to add?
plog("INFO", "Parse error "+name+" on "+js_string)