The Deputy Inspector General of Police escaped a six-month jail term after a high court judge set aside his conviction and sentence for disobeying a court order.