blob: 26b8eb753fafc2f96987fdd8846874c5b6dcd17c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# pylint: disable=missing-docstring
import socket
RETRYABLE_EXCEPTIONS = (socket.error,)
def exception_handler():
try:
yield 1
except RETRYABLE_EXCEPTIONS + tuple():
yield 2
|