mirror of
https://github.com/torproject/stem.git
synced 2025-03-04 07:57:29 +00:00
Missing run() from pydoc
Ok, that was dumb. The whole point of my minor doc adjustment was to call run()! Stupid me. https://trac.torproject.org/projects/tor/ticket/28400 Ran this demo both successfully and with an exception hardcoded in run() to ensure I didn't bugger it up again. :P
This commit is contained in:
parent
5d3565002b
commit
3768e1e922
@ -227,7 +227,7 @@ class Query(object):
|
||||
print('Current relays:')
|
||||
|
||||
try:
|
||||
for desc in Query('/tor/server/all', 'server-descriptor 1.0'):
|
||||
for desc in Query('/tor/server/all', 'server-descriptor 1.0').run():
|
||||
print(desc.fingerprint)
|
||||
except Exception as exc:
|
||||
print('Unable to retrieve the server descriptors: %s' % exc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user