diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py index 57d2732a76..980743618f 100755 --- a/tools/idf_monitor.py +++ b/tools/idf_monitor.py @@ -223,7 +223,7 @@ class Monitor: self.serial_handler.handle_serial_input(data, self.console_parser, self.coredump, self.gdb_helper, self._line_matcher, self.check_gdb_stub_and_run, - finalize_line=not self.coredump.in_progress) + finalize_line=not self.coredump or not self.coredump.in_progress) else: raise RuntimeError('Bad event data %r' % ((event_tag, data),))