The indentation is off here. I would prefer raising a type exception in the function itself. The paramater paring section should output an error message when both are provided.