From 53c302f84055900793cb3420260b4dcfd3605fcb Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Thu, 23 Oct 2025 18:25:59 +0200 Subject: [PATCH] SERVER-111671 Ignore rows without files in browser.py (#42910) GitOrigin-RevId: 19e4a59438b0b4f6f27e2fdad7d56469b6302a71 --- modules_poc/browse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules_poc/browse.py b/modules_poc/browse.py index 8caf3befbfc..370b21de21b 100755 --- a/modules_poc/browse.py +++ b/modules_poc/browse.py @@ -534,7 +534,8 @@ class FilesTree(Tree): def seek(file): for row in tree.root.children: - if row.data.name == file.name: + # rows separating marked and unmarked files have None in row.data + if type(row.data) == File and row.data.name == file.name: tree.center_scroll = True row.expand() tree.move_cursor(row, animate=True)