You also need to catch `TypeError` here.