A man who grabbed a woman by the neck during an argument has narrowly avoided an immediate prison sentence at Bradford Crown Court.