[or-cvs] [torflow/master 33/92] Exception.message is apparently deprecated in python 2.6
mikeperry at torproject.org
mikeperry at torproject.org
Sat Aug 21 05:13:59 UTC 2010
Author: John M. Schanck <john at anomos.info>
Date: Sat, 24 Jul 2010 13:04:25 -0400
Subject: Exception.message is apparently deprecated in python 2.6
Commit: 0201560489b6d9a0ed301b016b741611b69d97f4
---
NetworkScanners/ExitAuthority/soat.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index a82bb00..585bf1a 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -424,7 +424,7 @@ def _ssl_request(address, method='TLSv1_METHOD'):
rval = (E_MISC, None, e.__class__.__name__+str(e))
except SSL.Error, e:
signal.alarm(0) # Since we might recurse
- for (lib, func, reason) in e.message: # e.message is always list of 3-tuples
+ for (lib, func, reason) in e[0]:
if reason in ('wrong version number','sslv3 alert illegal parameter'):
# Check if the server supports a different SSL version
if method == 'TLSv1_METHOD':
--
1.7.1
More information about the tor-commits
mailing list