def ignore_errors(conn, fun=None, *args, **kwargs):
 if fun:
  with _ignore_errors(conn):
   return fun(*args, **kwargs)
 return _ignore_errors(conn)

def ignore_errors ( conn , fun = None , * args , ** kwargs ) : if fun : with _ignore_errors ( conn ) : return fun ( * args , ** kwargs ) return _ignore_errors ( conn )
ignore connection and channel errors .