What you're looking for is disabling Exception Chaining with from None
1.
Change your raise
statement to
raise InvalidValueError("%s is not a valid base10 number." % number) from None
and only your custom exception will be raised, without reference to the ValueError exception originally caught.