Commit 44ba28cf authored by Denis Bilenko's avatar Denis Bilenko

fallback to BlockingResolver if resolver_ares cannot be imported

parent c5b6a1a2
......@@ -205,7 +205,8 @@ class Hub(greenlet):
SYSTEM_ERROR = (KeyboardInterrupt, SystemExit, SystemError)
loop_class = 'gevent.core.loop'
resolver_class = 'gevent.resolver_ares.Resolver'
resolver_class = ['gevent.resolver_ares.Resolver',
'gevent.socket.BlockingResolver']
pformat = 'pprint.pformat'
def __init__(self, loop=None, default=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment