XMLparser: precise unhandled type

This commit is contained in:
nemunaire 2014-09-24 15:57:21 +02:00
parent 5be1e97411
commit 8f620b9756

View File

@ -127,7 +127,7 @@ class ModuleState:
if isinstance(value, datetime) or isinstance(value, str) or isinstance(value, int) or isinstance(value, float):
self.attributes[name] = value
else:
raise TypeError("attributes must be primary type or datetime")
raise TypeError("attributes must be primary type or datetime (here %s)" % type(value))
def getContent(self):
return self.content