This commit is contained in:
Christoph Gohlke 2016-11-24 03:34:19 +00:00 committed by GitHub
commit 2ae101371b

View File

@ -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"]: