fix subprocess.CalledProcessError

Signed-off-by: Gowrishankar Rajaiyan <gsr@redhat.com>