This may be a suitable fix:
if focus_sibling: first_term_sibling.grab_focus()
elif not sibling.get_toplevel().is_child_notebook(): try: Terminator().find_terminal_by_uuid(sibling.get_toplevel().last_active_term.urn).grab_focus()
except AttributeError: if sibling.get_toplevel().last_active_term: dbg('cannot find terminal with uuid: %s' % sibling.get_toplevel().last_active_term.urn) else: dbg('last active terminal does not have a uuid')
My above traceback is slightly different than the OP but there seem to be some known issues in this section of code also with similar backtraces:
"'NoneType' object has no attribute 'grab_focus'" /bugs.launchpad .net/ubuntu/ +source/ terminator/ +bug/1561345 /bugzilla. redhat. com/show_ bug.cgi? id=1898476 /github. com/gnome- terminator/ terminator/ pull/145/ commits/ 9edefb6f3285fa2 36656bcc2440661 d1a107174b /errors. ubuntu. com/problem/ f0c07815340e8b5 e1e401bead074ea f287e8ca00
* https:/
* https:/
* https:/
* https:/
"'VPaned' object has no attribute 'is_child_ notebook' " /errors. ubuntu. com/problem/ 9aa9259838a67d8 c24c342b106efd8 41b516340b /bugs.launchpad .net/ubuntu/ +source/ terminator/ +bug/1931317 /bugzilla. redhat. com/show_ bug.cgi? id=1898476
* https:/
* https:/
* https:/
This may be a suitable fix:
first_ term_sibling. grab_focus( ) get_toplevel( ).is_child_ notebook( ):
try:
Terminato r().find_ terminal_ by_uuid( sibling. get_toplevel( ).last_ active_ term.urn) .grab_focus( )
if sibling. get_toplevel( ).last_ active_ term:
dbg( 'cannot find terminal with uuid: %s' % sibling. get_toplevel( ).last_ active_ term.urn)
else:
dbg( 'last active terminal does not have a uuid')
if focus_sibling:
elif not sibling.
except AttributeError: