Explorar o código

tools: fix potential python error when parsing trace.rec

Samuel Pitoiset %!s(int64=9) %!d(string=hai) anos
pai
achega
610ec5b74b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/starpu_trace_state_stats.py

+ 1 - 1
tools/starpu_trace_state_stats.py

@@ -48,7 +48,7 @@ class EventStats():
         self._count += 1
 
     def show(self):
-        if not self._name == None:
+        if not self._name == None and not self._category == None:
             print "\"" + self._name + "\"," + str(self._count) + ",\"" + self._category + "\"," + str(round(self._duration_time, 6))
 
 class Worker():