bazarr/libs/retry/__init__.py

19 lines
361 B
Python
Raw Normal View History

2018-10-31 16:08:29 +00:00
__all__ = ['retry']
import logging
from .api import retry
# Set default logging handler to avoid "No handler found" warnings.
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
log = logging.getLogger(__name__)
log.addHandler(NullHandler())