Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug 971] - Save button throws KeyError when a multiple tab layout is… #972

Conversation

vssdeo
Copy link
Contributor

@vssdeo vssdeo commented Dec 11, 2024

Issue is described in #971 the KeyError should not be raised after following the steps.

The solution is to pass on flag so that the current terminals are not cleared on terminator.reconfigure when called from Preference window close button. Need to check if there is another efficient way to handle or parameter passing across to notebook.py is ok.

… saved using Save Button after closing the Preference window using close button. A fix is provided that last_active_term is not cleared on preference window closure using a parameter.
@mattrose
Copy link
Member

Q: Does the KeyError spit out affect the functionality at all, or is it just an error that is thrown because self.last_active_term[self.get_nth_page(tabnum)] is getting something that it's not expecting, but it doesn't actually affect the running of terminator as a whole.

I'm just wondering if a better way of handling this error is to catch the KeyError when it's raised and just do the right thing, rather than alter the arguments to reconfigure. This seems like the simpler way to fix this to me.

@vssdeo
Copy link
Contributor Author

vssdeo commented Jan 18, 2025

@mattrose I think you are right, I guess I was thinking in terms of error handling and not considering that in python world exception need not be an error. I will remove this PR.

@vssdeo vssdeo closed this Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants