BUG : fix 2.6 compatbility

fix usage of decode errors arg for 2.6