No , I did not get any errors. This line was left as it is. I only added the check for colorspace == None .