[tor-commits] [torflow/master] 4103 - using variable 'code' before assignment

mikeperry at torproject.org mikeperry at torproject.org
Wed Sep 28 22:38:12 UTC 2011


commit 44ceb2d27f78c4a2a05791c1adcdb39e81b4d60b
Author: aagbsn <aagbsn at extc.org>
Date:   Tue Sep 27 11:01:24 2011 -0700

    4103 - using variable 'code' before assignment
    
    It looks as if this was meant to be 'search_req.code' and not 'code'
---
 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 8e7b8a7..02f3685 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -1788,7 +1788,7 @@ class SearchBasedTest:
         break
 
       if (400 <= search_req.code < 500):
-        plog('ERROR', 'Scraping of http://'+host+search_path+' failed. HTTP '+str(code))
+        plog('ERROR', 'Scraping of http://'+host+search_path+' failed. HTTP '+str(search_req.code))
         break
 
       content = search_req.content





More information about the tor-commits mailing list