mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-27 01:57:33 +00:00
19 lines
361 B
Python
19 lines
361 B
Python
|
__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())
|