-
Notifications
You must be signed in to change notification settings - Fork 95
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
create PyKeePassException #385
Comments
I did a grep for
For me the most important thing would be to document what calls can fail. The secondary one would be to have descriptive errors in the library and only throw those. For example, |
I just stumbled into https://gitlab.gnome.org/World/secrets/-/issues/525. While its definitively my fault to not try to catch a broad exception (see related MR) it shows a bit the pitfalls of manually trying to handle exceptions that might come from outside the library. |
I'm not coming up with anything obvious other than the I also agree that getting too aggressive about catching too many exceptions could cause some debugging challenges when getting bug reports from people. Do you think that the way @br-olf handles the |
There are lots of cases right now where PyKeePass allows internal exceptions to bubble up to the end-user. We should consider catching some of these where it makes sense and raising a
PyKeePassException
that is more descriptive.e.g. A user tries to dereference a field when the reference doesn't exist
I'd like to collate a list of these cases here. Maybe @A6GibKm @FalkAlexander @firecat53 have some examples?
The text was updated successfully, but these errors were encountered: