[tor-bugs] #32689 [Core Tor/Stem]: control.py self.msg() calls try to join lists with strings

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Dec 7 22:20:22 UTC 2019


#32689: control.py self.msg() calls try to join lists with strings
---------------------------+------------------------------
 Reporter:  kamin07        |          Owner:  atagar
     Type:  defect         |         Status:  closed
 Priority:  Medium         |      Milestone:
Component:  Core Tor/Stem  |        Version:  Tor: 0.3.3.6
 Severity:  Normal         |     Resolution:  not a bug
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+------------------------------
Changes (by atagar):

 * status:  new => closed
 * resolution:   => not a bug


Comment:

 Hi kamin07. This is actually a bug in ScanHead.py. The call you're making
 is...

 {{{
 controller.add_event_listener(attach_stream,
 stem.response.events.StreamEvent)
 }}}

 As documented by
 [https://stem.torproject.org/api/control.html#stem.control.Controller.add_event_listener
 add_event_listener] the second argument are EventType, not the Event
 class. Please change this to...

 {{{
 from stem.control import EventType

 controller.add_event_listener(attach_stream, EventType.STREAM)
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32689#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list