summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-04-08 22:13:29 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2022-04-08 22:13:29 +0200
commitd9a01bb779839972439ec7b949141aa2d68258f0 (patch)
tree4dcd2c97fb002cec3b7d8eb8c8349d1c08750a2b
parent304686c62cdf5ee27df30e2f74bce3e2a64017e5 (diff)
downloadpoezio-d9a01bb779839972439ec7b949141aa2d68258f0.tar.gz
poezio-d9a01bb779839972439ec7b949141aa2d68258f0.tar.bz2
poezio-d9a01bb779839972439ec7b949141aa2d68258f0.tar.xz
poezio-d9a01bb779839972439ec7b949141aa2d68258f0.zip
Fixes #3552: Prevent traceback on unhandled tab type (Thanks tofu)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--plugins/reorder.py2
1 files changed, 1 insertions, 1 deletions
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