From d9a01bb779839972439ec7b949141aa2d68258f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 8 Apr 2022 22:13:29 +0200 Subject: Fixes #3552: Prevent traceback on unhandled tab type (Thanks tofu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/reorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/reorder.py b/plugins/reorder.py index d4ab464b..5769d560 100644 --- a/plugins/reorder.py +++ b/plugins/reorder.py @@ -118,7 +118,7 @@ def parse_runtime_tablist(tablist): i += 1 result = check_tab(tab) # Don't serialize gap tabs as they're recreated automatically - if result != 'empty': + if result != 'empty' and isinstance(tab, TEXT_TO_TAB.values()): props.append((i, '%s:%s' % (result, tab.jid.full))) return props -- cgit v1.2.3