Mon, 17 Sep 2018 19:48:02 -0500
py2app is fucked up shit that couldn't find a packages with staring at it
with its name written on it, and instead takes them all, so include a long
list of modules to forcibly exclude to build a reasonably-sized app.
# # Borgend by Tuomo Valkonen, 2018 # # Except-catching decocators to catch bugs in callbacks # import logging logger=logging.getLogger(__name__) def protect_noreturn(fn): name=fn.__name__ def wrapper(*args, **kwargs): try: fn(*args, **kwargs) except: logger.exception('bug in ' + name) return wrapper def protect_return(default): def wrap(fn): name=fn.__name__ def wrapper(*args, **kwargs): try: return fn(*args, **kwargs) except: logger.exception('bug in ' + name) return default return wrapper return wrap