What is the grammatical structure of the following sentence?
I was more junior there, and the magazine has earned itself a sterling reputation, which generally keeps it above the ethical fray that Gawker is not only subjected to, but often courts.
(source : http://gawker.com/how-guilty-should-i-feel-1785565192)
I'm not sure if the "courts" is used as a "noun" in legal background or a "verb".
If it is a verb, what's the meaning of it in the sentence? I am not a native English speaker, so I would deeply appreciate if you can enlarge my knowledge of grammar terminology by analyzing the last part of the sentence.