You probably also want to catch `TypeError` here.