Skip to content

Commit 7254ed6

Browse files
committed
python: Added guard condition to ignore initialization STDOUT lines without an event number.
1 parent 629a55e commit 7254ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/inet/simulation/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def get_stdout_trajectory(self, filter=None, exclude_filter=None, full_match=Fal
160160
match = re.match(r"\*\* Event #(\d+) .*", line)
161161
if match:
162162
event_number = int(match.group(1))
163-
else:
163+
elif event_number is not None:
164164
if matches_filter(line, filter, exclude_filter, full_match):
165165
event_numbers.append(event_number)
166166
lines.append(line)

0 commit comments

Comments
 (0)