Skip to content

Commit 22c3a8e

Browse files
authored
Esp8266ExceptionDecoder: fix crash on empty line (#212)
1 parent 1748637 commit 22c3a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monitor/filter_exception_decoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def rx(self, text):
156156
self.buffer = ""
157157
last = idx + 1
158158

159-
if line[-1] == "\r":
159+
if line and line[-1] == "\r":
160160
line = line[:-1]
161161

162162
extra = self.process_line(line)

0 commit comments

Comments
 (0)