[PATCH] tools: fix get_maintainers() returning None when no tree is found
Ali Alnubani
alialnu at nvidia.com
Thu Mar 5 11:30:52 CET 2026
get_maintainers() only returned when the tree was found in the
"General Project Administration" section. If it was not found, the
function fell through and returned None, causing:
TypeError: print() argument after * must be an iterable, not NoneType
Return the maintainers list (even if empty) at the end of the
function so callers always receive an iterable.
Signed-off-by: Ali Alnubani <alialnu at nvidia.com>
---
tools/pw_maintainers_cli.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/pw_maintainers_cli.py b/tools/pw_maintainers_cli.py
index d75ea96..b35f4bb 100755
--- a/tools/pw_maintainers_cli.py
+++ b/tools/pw_maintainers_cli.py
@@ -198,6 +198,7 @@ class Maintainers(object):
self.maintainer_regex, subsection)
return maintainers
break
+ return maintainers
def get_tree(self, files):
"""
--
2.53.0
More information about the ci
mailing list