You need to return the result of func(a, b) within the isNumeric function. Currently, nothing is returned.
Corrected:
def decoratorIsNumber(func):
def isNumeric(a, b):
a = a if str(a).isnumeric() else 0
b = b if str(b).isnumeric() else 0
return func(a, b)
return isNumeric