A man has narrowly avoided being locked up after assaulting a woman with a broomstick and causing injuries to her arm that required suturing.