"Do not respect persons in judgment"—Deuteronomy 1:17.
It is forbidden for the Rabbinic Supreme Court or the Exilarch to appoint a judge who is not versed in Torah wisdom, though the individual possesses other qualities.
For example, one may not say, "I'll appoint this individual because he is handsome, powerful, related to me, lent me money, or proficient in many languages." Such an appointee is liable to pervert justice—not out of maliciousness, but out of ignorance.
Rather, with regard to all Torah appointments, we only consider the candidate's proficiency in Torah and knowledge of its commands and prohibitions, and that his personal behavior should be in concordance with this knowledge.