calcOrNone

lsst.validate.drp.util.calcOrNone(func, x, ErrorClass, **kwargs)[source]

Calculate the func and return result. If it raises ErrorClass, return None.