[tor-bugs] #16048 [Stem]: Cannot access bandwidth attribute on RouterV3StatusEntry

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun May 17 21:33:56 UTC 2015


#16048: Cannot access bandwidth attribute on RouterV3StatusEntry
------------------------+--------------------
     Reporter:  tom     |      Owner:  atagar
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:
    Component:  Stem    |    Version:
   Resolution:          |   Keywords:
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------

Comment (by tom):

 {{{
 from stem.descriptor import DocumentHandler
 from stem.descriptor.remote import DescriptorDownloader, get_authorities

 downloader = DescriptorDownloader()
 query = downloader.get_vote(get_authorities()['moria1'], document_handler
 = DocumentHandler.DOCUMENT, validate = False)

 r = query.run()[0]
 for i in r.routers:
     print r.routers[i].bandwidth
 }}}

 That should repro it.

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


More information about the tor-bugs mailing list