crash fix: len of unsized object

This commit is contained in:
Darren Ranalli 2008-07-29 04:44:11 +00:00
parent e5c6aebcef
commit ea16d65902

View File

@ -186,7 +186,7 @@ class GarbageReport(Job):
for i in xrange(numGarbage):
yield None
idx = garbageIndices[i]
objStr = deeptype(self.garbage[idx])
objStr = str(deeptype(self.garbage[idx]))
maxLen = 5000
if len(objStr) > maxLen:
snip = '<SNIP>'