From 9edefb6f3285fa236656bcc2440661d1a107174b Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Mon, 22 Jun 2020 16:20:18 -0400 Subject: [PATCH] fix traceback on paned.py --- terminatorlib/paned.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminatorlib/paned.py b/terminatorlib/paned.py index 373d9e53..bb36f04c 100644 --- a/terminatorlib/paned.py +++ b/terminatorlib/paned.py @@ -308,7 +308,10 @@ class Paned(Container): if focus_sibling: first_term_sibling.grab_focus() elif not sibling.get_toplevel().is_child_notebook(): - Terminator().find_terminal_by_uuid(sibling.get_toplevel().last_active_term.urn).grab_focus() + try: + Terminator().find_terminal_by_uuid(sibling.get_toplevel().last_active_term.urn).grab_focus() + except AttributeError: + dbg('cannot find terminal with uuid: %s' % sibling.get_toplevel().last_active_term.urn) else: dbg("Paned::wrapcloseterm: self.closeterm failed")