blob: a42d44ac312e027a9ac065f1f3d56695978cd098 [file] [log] [blame]
# pylint: disable=missing-docstring
import socket
RETRYABLE_EXCEPTIONS = (socket.error,)
# pylint: disable=wrong-exception-operation
def exception_handler():
try:
yield 1
except RETRYABLE_EXCEPTIONS + tuple():
yield 2