colorspace = image.colorspace_settings.name
if usage=='GRAY' and colorspace=='sRGB':
- raise Exception("Grayscale textures with sRGB colorspace are not supported")
+ raise Exception("Unsupported configuration on texture {}: Grayscale with sRGB".format(image.name))
from .util import basename
fn = basename(image.filepath)