Commit 88666c1c authored by Denis Bilenko's avatar Denis Bilenko

resolver_thread: set expected_errors to Exception because it is possible for...

resolver_thread: set expected_errors to Exception because it is possible for DNS functions to raise UnicodeDecodeError
parent 07caf0aa
......@@ -8,7 +8,7 @@ __all__ = ['Resolver']
class Resolver(object):
expected_errors = (_socket.error, TypeError)
expected_errors = Exception
def __init__(self, hub=None):
if hub is 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