[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #13879 [Stem]: stem : GETINFO request contained unrecognized keywords
#13879: stem : GETINFO request contained unrecognized keywords
------------------------+--------------------
Reporter: toralf | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
------------------------+--------------------
Comment (by atagar):
All getter methods on the Controller object support a default value, which
can make this a bit nicer...
{{{
relay = controller.get_network_status(fingerprint, None)
if relay:
print " %i %s %15s %5i %s %s %s" % (event.arrived_at,
time.ctime(event.arrived_at), relay.address, relay.or_port, fingerprint,
controller.get_info("ip-to-country/%s" % relay.address, 'unknown'),
relay.nickname)
else:
print "Unable to retrieve the descriptor from tor for: %s" % fingerprint
}}}
It's kinda odd tor is emitting an ORCONN event but unable to provide its
router status entry. This is a tor issue though. Feel free to file another
ticket under the tor component to ask about that - for my part I'll simply
be improving the error message for this ticket.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13879#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs