commit 4fdd2031e6b231ed4bbaa79940f67e9b8f691382 Author: aagbsn aagbsn@extc.org Date: Fri Sep 20 16:52:58 2013 +0200
9771 - Keep Torflow happy
Torflow expects the PURPOSE to not be None but "" if no PURPOSE is set. --- TorCtl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/TorCtl.py b/TorCtl.py index c5747f4..562ea78 100755 --- a/TorCtl.py +++ b/TorCtl.py @@ -1372,7 +1372,7 @@ class EventHandler(EventSink): except ValueError: raise ProtocolError("CIRC event misformatted.") ident = int(ident) - purpose = kwargs.get('PURPOSE', None) + purpose = kwargs.get('PURPOSE', "") reason = kwargs.get('REASON', None) remote = kwargs.get('REMOTE_REASON', None) event = CircuitEvent(evtype, ident, status, path, purpose, reason,
tor-commits@lists.torproject.org