Skip to content

Commit b56fb1d

Browse files
committed
add try/catch
1 parent 2dab3da commit b56fb1d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎tests/catalog/test_hive.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,16 @@ def port(self) -> int | None:
234234
return self._port
235235

236236
def close(self) -> None:
237-
self._socket.close()
237+
try:
238+
self._socket.close()
239+
except Exception:
240+
pass
238241
self.join(timeout=5)
239242
for client in self._clients:
240-
client.close()
243+
try:
244+
client.close()
245+
except Exception:
246+
pass
241247

242248

243249
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)