def ignore_exception(IgnoreException=Exception, DefaultVal=None):
    """ Decorator for ignoring exception from a function
    e.g.   @ignore_exception(DivideByZero)
    e.g.2. ignore_exception(DivideByZero)(Divide)(2/0)
    """

def dec(function):

    def _dec(*args, **kwargs):
        pass
Is there a built-in or more Pythonic way to try to parse a string to an integer