diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index c2b459e0..b4511c41 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -331,7 +331,8 @@ def layout_done(self): # For windows without a notebook ensure Terminal is visible and focused if window_last_active_term_mapping[window]: term = self.find_terminal_by_uuid(window_last_active_term_mapping[window].urn) - term.ensure_visible_and_focussed() + if term: + term.ensure_visible_and_focussed() # Build list of new windows using prelayout list new_win_list = []