This should be a `TypeError`, not a base `Exception`