Browse Source

crash fix: len of unsized object

Darren Ranalli 17 years ago
parent
commit
ea16d65902
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/GarbageReport.py

+ 1 - 1
direct/src/showbase/GarbageReport.py

@@ -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>'