[or-cvs] r17979: {torflow} Add more info to exception handling cases. (torflow/trunk/NetworkScanners)
mikeperry at seul.org
mikeperry at seul.org
Tue Jan 6 20:36:46 UTC 2009
Author: mikeperry
Date: 2009-01-06 15:36:46 -0500 (Tue, 06 Jan 2009)
New Revision: 17979
Modified:
torflow/trunk/NetworkScanners/speedracer.py
Log:
Add more info to exception handling cases.
Modified: torflow/trunk/NetworkScanners/speedracer.py
===================================================================
--- torflow/trunk/NetworkScanners/speedracer.py 2009-01-06 20:33:38 UTC (rev 17978)
+++ torflow/trunk/NetworkScanners/speedracer.py 2009-01-06 20:36:46 UTC (rev 17979)
@@ -15,6 +15,7 @@
import urllib2
import re
import os
+import traceback
sys.path.append("../")
from TorCtl.TorUtil import plog
@@ -88,6 +89,10 @@
except (IndexError, TypeError):
plog('ERROR', 'An error occured while negotiating socks5 with Tor')
return 0
+ except:
+ plog('ERROR', 'An unknown HTTP error occured')
+ traceback.print_exc()
+
def speedrace(meta, skip, pct):
@@ -175,5 +180,4 @@
plog('INFO', "Ctrl + C was pressed. Exiting ... ")
except Exception, e:
plog('ERROR', "An unexpected error occured.")
- plog('ERROR', e)
-
+ traceback.print_exc()
More information about the tor-commits
mailing list