@contextlib.contextmanager
    def with_client(self):
        client = self.get_client()
        yield client
        self.put_client(client)
When an exception is encountered, this generates a serialized error
dataset/ETHPy150Open gholt/swiftly/swiftly/client/manager.py/ClientManager.with_client--crossover with--dataset/ETHPy150Open toastdriven/restless/restless/resources.py/Resource.handle_error