Skip to content

Commit 76b3c66

Browse files
committed
pw_poller: avoid crash on unknown tree
Seems at least with certain misconfigurations we can get a tree here that doesn't actually exist in the work queues, skip that instead of crashing. Signed-off-by: Johannes Berg <[email protected]>
1 parent 04b9271 commit 76b3c66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pw_poller.py

+3
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def _process_series(self, pw_series) -> None:
172172

173173
if hasattr(s, 'tree_name') and s.tree_name:
174174
s.tree_selection_comment = comment
175+
if not s.tree_name in self._work_queues:
176+
log(f"skip {pw_series['id']} for unknown tree {s.tree_name}", "")
177+
return
175178
self._work_queues[s.tree_name].put(s)
176179
else:
177180
core.write_tree_selection_result(self.result_dir, s, comment)

0 commit comments

Comments
 (0)