Merge pull request #4330 from blueyed/fix-report-last-write
Fix TypeError in report_collect with _collect_report_last_write
This commit is contained in:
commit
f06fe43649
|
@ -0,0 +1 @@
|
|||
Fix TypeError in report_collect with _collect_report_last_write.
|
|
@ -497,7 +497,10 @@ class TerminalReporter(object):
|
|||
if not final:
|
||||
# Only write "collecting" report every 0.5s.
|
||||
t = time.time()
|
||||
if self._collect_report_last_write > t - 0.5:
|
||||
if (
|
||||
self._collect_report_last_write is not None
|
||||
and self._collect_report_last_write > t - 0.5
|
||||
):
|
||||
return
|
||||
self._collect_report_last_write = t
|
||||
|
||||
|
|
Loading…
Reference in New Issue