Except as authorized by general state law, the mayor or any city council shall not hold any other city office during the term for which he or she was elected.