def safecall(func):
 def wrapper(*args, **kwargs):
  try:
   return func(*args, **kwargs)
  except Exception:
   pass
 return wrapper

def safecall ( func ) : def wrapper ( * args , ** kwargs ) : try : return func ( * args , ** kwargs ) except Exception : pass return wrapper
wraps a function so that it swallows exceptions .