bpo-36232: Improve error message on dbm.open() when the db doesn't exist#12060
Conversation
|
The forced-push was just to rebuild on Azure. It was falling for reasons not related to the changes. |
There was a problem hiding this comment.
| raise error[0]("db file doesn't exist, " | |
| raise error[0]("db file doesn't exist; " |
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
@rougeth mind adding a news file? (And make sure to thank yourself!) You can use blurb-it -- found in the Details link for the bedevere/news CI check -- to add one easily. |
|
I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @brettcannon: please review the changes made to this pull request. |
|
@brettcannon I was looking into the other news entries, found a typo and fixed it, is that ok? |
There was a problem hiding this comment.
| "use 'c' or 'n' flag to open new db") | |
| "use 'c' or 'n' flag to create a new db") |
brettcannon
left a comment
There was a problem hiding this comment.
One minor wording change.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I would have committed the change myself but GH says I don't have permission to. |
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @brettcannon: please review the changes made to this pull request. |
Explicit raise that db file doesn't exist if tries to open an existing file with 'r' and 'w' flags.
|
@brettcannon I may have blocked PR changes from other people (don't know/remember why :) I believe now it's ok. |
|
Thanks! |
https://bugs.python.org/issue36232