fix: errors in types

This commit is contained in:
cr0hn
2016-03-18 13:36:33 +01:00
parent c581a5364a
commit 190a603a7e

View File

@@ -106,7 +106,10 @@ class CommonData(Model):
def __repr__(self):
r = []
for x, v in six.iteritems(self.vars):
r.append("%s: %s" % (x, str(v)))
try:
r.append("%s: %s" % (x, str(v)))
except TypeError:
r.append("%s: %s" % (x, str(v.data)))
return "\n".join(r)