def _ignore_timeout(self, failure, result=None):
"""Ignores a TimeoutError in an errback chain.
The result argument will be returned, and there injected into the
regular callback chain.
"""
failure.trap(error.TimeoutError, defer.TimeoutError)
self._logger.debug("request timed out, ignoring and moving on...")
return result
评论列表
文章目录