When a peremptory mandamus is directed to a public officer, body or board commanding the performance of a public duty specially enjoined by law, and the court finds that the officer or any member of a body or board has, without just excuse, refused or neglected to perform the duty enjoined, the court may impose a fine not exceeding five hundred dollars ($500.00) on the officer or member. Payment of the fine shall bar an action for any penalty incurred by the officer or member by reason of his refusal or neglect.
W.S. 1-30-115