Every judicial officer, and every Registrar or Deputy Registrar of any court, is liable to imprisonment for a term not exceeding 7 years who corruptly accepts or obtains, or agrees or offers to accept or attempts to obtain, any bribe for himself or herself or any other person in respect of any act done or omitted, or to be done or omitted, by him or her in his or her official capacity, not being an act or omission to which subsection (1) applies.