Skip to content

Commit 6642786

Browse files
authored
Merge pull request #887 from mattrose/fix-tb
fix traceback in layout_done
2 parents 5ef1131 + 7f581fd commit 6642786

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

terminatorlib/terminator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ def layout_done(self):
331331
# For windows without a notebook ensure Terminal is visible and focused
332332
if window_last_active_term_mapping[window]:
333333
term = self.find_terminal_by_uuid(window_last_active_term_mapping[window].urn)
334-
term.ensure_visible_and_focussed()
334+
if term:
335+
term.ensure_visible_and_focussed()
335336

336337
# Build list of new windows using prelayout list
337338
new_win_list = []

0 commit comments

Comments
 (0)