[tor-commits] [stem/master] Error message printed wrong arg

atagar at torproject.org atagar at torproject.org
Thu Jan 3 03:06:30 UTC 2013


commit 8a746ba1023a521cdb09a068ab68102a0ca75498
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Jan 2 18:48:38 2013 -0800

    Error message printed wrong arg
    
    Drats. Just got an unexpected exception for this that I can't repro, and the
    stacktrace had the wrong attribute... >:(
---
 stem/control.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/stem/control.py b/stem/control.py
index a0a40ba..b1525a9 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -1929,7 +1929,7 @@ def _parse_circ_entry(entry):
     fingerprint = fingerprint[1:] # strip off the leading '$'
   
   if nickname is not None and not stem.util.tor_tools.is_valid_nickname(nickname):
-    raise stem.ProtocolError("Nickname in the circuit path is malformed (%s)" % fingerprint)
+    raise stem.ProtocolError("Nickname in the circuit path is malformed (%s)" % nickname)
   
   return (fingerprint, nickname)
 



More information about the tor-commits mailing list