
In case of a ProcessingError, the image dimensions are set to None. But after that, they are compared with 0, which resulted in a TypeError.
In case of a ProcessingError, the image dimensions are set to None. But after that, they are compared with 0, which resulted in a TypeError.