diff --git a/tests/unix_test.py b/tests/unix_test.py index cb8c08f5..ba1ba152 100644 --- a/tests/unix_test.py +++ b/tests/unix_test.py @@ -90,7 +90,7 @@ class ClientTest(testlib.TestCase): while True: try: return mitogen.unix.connect(path) - except socket.error: + except mitogen.unix.ConnectError: if time.time() > timeout: raise time.sleep(0.1)