Fixes #3552: Prevent traceback on unhandled tab type (Thanks tofu)

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-04-08 22:13:29 +02:00
parent 304686c62c
commit d9a01bb779
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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