(1) Every judicial officer is liable to imprisonment for a term not exceeding 14 years who corruptly accepts or obtains, or agrees or offers to accept or attempts to obtain, any bribe for himself or any other person in respect of any act done or omitted, or to be done or omitted, by him in his judicial capacity.
(2) 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 any other person in respect of any act done or omitted, or to be done or omitted, by him in his official capacity, not being an act or omission to which subsection (1) applies.