diff --git a/PIL/Image.py b/PIL/Image.py index 3f8a49e6f..0dee60460 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -2164,7 +2164,7 @@ def fromarray(obj, mode=None): mode, rawmode = _fromarray_typemap[typekey] except KeyError: # print typekey - raise TypeError("Cannot handle this data type") + raise TypeError("Cannot handle this data type %s" % repr(typekey)) else: rawmode = mode if mode in ["1", "L", "I", "P", "F"]: