Skip to content
Snippets Groups Projects
Closed Documentation for Query talks about using run() to get errors, but it's not in the example
  • View options
  • Documentation for Query talks about using run() to get errors, but it's not in the example

  • View options
  • Closed Issue created by irl
    from stem.descriptor.remote import Query
    
    query = Query(
      '/tor/server/all',
      block = True,
      timeout = 30,
    )
    
    print('Current relays:')
    
    if not query.error:
      for desc in query:
        print(desc.fingerprint)
    else:
      print('Unable to retrieve the server descriptors: %s' % query.error)

    It's just iterating as in the example below it.

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading