reorder: create GapTab if configured, when creating ConversationTab fails

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-04-01 01:26:08 +02:00
parent 7d6b301087
commit 496752d0db
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -183,7 +183,8 @@ class Plugin(BasePlugin):
new_tabs.append(new_tab)
except:
self.api.information('Failed to create tab \'%s\'.' % jid, 'Error')
continue
if create_gaps:
new_tabs.append(tabs.GapTab(self.core))
last = pos
for tab in old_tabs: