[tor-commits] [torflow/master] 4102 - address_to_failed_prefix is not defined

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


commit 46956cc9778b33c69b8ea4f427f27307fd8e742b
Author: aagbsn <aagbsn at extc.org>
Date:   Tue Sep 27 10:53:05 2011 -0700

    4102 - address_to_failed_prefix is not defined
    
    fixed missing 'self'; also corrected a reference-before-assignment
---
 NetworkScanners/ExitAuthority/soat.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index 19a820e..8e7b8a7 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -1348,12 +1348,12 @@ class BaseHTTPTest(Test):
                               address, TEST_FAILURE, FAILURE_EXITTRUNCATION,
                               sha1sum.hexdigest(), psha1sum.hexdigest(),
                               content_prefix+".content",
-                              exit_content_file)
+                              self.address_to_failed_prefix(address)+'.'+exit_node[1:]+'.content')
       retval = self.register_exit_failure(result)
 
     # If we failed, then store what the exit node handed us
     if retval == TEST_FAILURE:
-      exit_content_file = open(address_to_failed_prefix(address)+'.'+exit_node[1:]+'.content', 'w')
+      exit_content_file = open(self.address_to_failed_prefix(address)+'.'+exit_node[1:]+'.content', 'w')
       exit_content_file.write(preq.contet)
       exit_content_file.close()
 





More information about the tor-commits mailing list