From 3d992047a83d0668e484700f7077753752adee21 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 4 Apr 2019 14:45:30 -0700 Subject: monkeypatch annoying pytest shutdown exception --- python_client/fatcat_client/api_client.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'python_client/fatcat_client') diff --git a/python_client/fatcat_client/api_client.py b/python_client/fatcat_client/api_client.py index 8ebab103..af25fc2c 100644 --- a/python_client/fatcat_client/api_client.py +++ b/python_client/fatcat_client/api_client.py @@ -76,8 +76,11 @@ class ApiClient(object): self.user_agent = 'Swagger-Codegen/1.0.0/python' def __del__(self): - self.pool.close() - self.pool.join() + try: + self.pool.close() + self.pool.join() + except: + pass @property def user_agent(self): -- cgit v1.2.3