From 523a653ba50d81e6bbb46795397a8ed4113aa75e Mon Sep 17 00:00:00 2001 From: shaun Date: Tue, 1 Nov 2016 11:23:34 +1100 Subject: [PATCH] remove redundant frunction wrapper --- resources/lib/utils.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 73e0ca0a..420c4a7f 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -307,21 +307,6 @@ def indent(elem, level=0): if level and (not elem.tail or not elem.tail.strip()): elem.tail = i -def catch_except(errors=(Exception, )): - # Will wrap method with try/except and print parameters for easier debugging - def decorator(func): - def wrapper(*args, **kwargs): - try: - return func(*args, **kwargs) - except errors as error: - log.exception(error) - log.error("function: %s \n args: %s \n kwargs: %s", - func.__name__, args, kwargs) - raise - - return wrapper - return decorator - def profiling(sortby="cumulative"): # Will print results to Kodi log def decorator(func):