def swallow_exceptions(exn_logger):
    def decor(func):
        def wrapper(*args, **kwargs):
            try:
                return func(*args, **kwargs)
            except Exception as e:
                exn_logger.exception(e)
        return wrapper
    return decor
Stop everything that was started.
dataset/ETHPy150Open dropbox/changes/changes/ext/statsreporter.py/swallow_exceptions--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/components/light/test_init.py/TestLight.tearDown