The validity of an election which may be contested under this Code cannot be tried under the provisions of this article.