[tor-commits] [stem/master] Reverting comment change about tor error messages

atagar at torproject.org atagar at torproject.org
Tue Nov 6 16:17:47 UTC 2012


commit a5c5ae8c3af4409b8fcac10a38b21a37723237c9
Author: Damian Johnson <atagar at torproject.org>
Date:   Tue Nov 6 08:09:06 2012 -0800

    Reverting comment change about tor error messages
    
    The prior spelling fixes condensed a comment that we had about the error
    message tor will provide when we use the wrong controller password. The change
    makes sense, but these lines are here to tell us the exact error message tor
    provides (after which it's hopefully reasonably obvious why we check for the
    "Password did not match HashedControlPassword" part of it).
---
 stem/connection.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/stem/connection.py b/stem/connection.py
index 6264be4..20f0d84 100644
--- a/stem/connection.py
+++ b/stem/connection.py
@@ -489,7 +489,8 @@ def authenticate_password(controller, password, suppress_ctl_errors = True):
       except: pass
       
       # all we have to go on is the error message from tor...
-      # ...Password did not match HashedControlPassword.
+      # Password did not match HashedControlPassword value value from configuration...
+      # Password did not match HashedControlPassword *or*...
       
       if "Password did not match HashedControlPassword" in str(auth_response):
         raise IncorrectPassword(str(auth_response), auth_response)





More information about the tor-commits mailing list