From 46b73f406aaec6b1ffb2c83b6b643e6263a83b78 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 16 Jun 2009 18:26:16 +0100 Subject: [PATCH] Handle get_first_notebook_page() failing. Closes LP #354495 --- terminatorlib/terminator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index f1f483a2..9fc6224d 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -1299,7 +1299,10 @@ class Terminator: def move_tab(self, term, direction): dbg("moving to direction %s" % direction) - (notebook, page) = self.get_first_notebook_page(term) + data = self.get_first_notebook_page(term) + if data is None: + return False + (notebook, page) = data page_num = notebook.page_num(page) nbpages = notebook.get_n_pages() #dbg ("%s %s %s %s" % (page_num, nbpages,notebook, page))