code: def ignore_exceptions(f):
      
      @functools.wraps(f)
      def wrapped(*args, **kwargs):
          try:
              return f(*args, **kwargs)
          except:
              logging.exception("Ignoring exception in %r", f)
      return wrapped
docs: Decorator catches and ignores any exceptions raised by this function.