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

Improve error message on dbm.open #80413

Closed
rougeth mannequin opened this issue Mar 8, 2019 · 3 comments
Closed

Improve error message on dbm.open #80413

rougeth mannequin opened this issue Mar 8, 2019 · 3 comments

Comments

@rougeth
Copy link
Mannequin

rougeth mannequin commented Mar 8, 2019

BPO 36232
Nosy @brettcannon, @corona10, @rougeth
PRs
  • bpo-36232: Improve error message on dbm.open() when the db doesn't exist #12060
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-09-25.09:06:18.400>
    created_at = <Date 2019-03-08.10:06:52.735>
    labels = []
    title = 'Improve error message on dbm.open'
    updated_at = <Date 2019-09-25.09:06:18.399>
    user = 'https://github.com/rougeth'

    bugs.python.org fields:

    activity = <Date 2019-09-25.09:06:18.399>
    actor = 'rougeth'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-09-25.09:06:18.400>
    closer = 'rougeth'
    components = []
    creation = <Date 2019-03-08.10:06:52.735>
    creator = 'rougeth'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36232
    keywords = []
    message_count = 3.0
    messages = ['337462', '341126', '353104']
    nosy_count = 3.0
    nosy_names = ['brett.cannon', 'corona10', 'rougeth']
    pr_nums = ['12060']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue36232'
    versions = []

    @rougeth
    Copy link
    Mannequin Author

    rougeth mannequin commented Mar 8, 2019

    If dbm.open is used with the flags 'r' or 'w' (read-only) to open a file that doesn't exist, it raises an exception with the message "need 'c' or 'n' flag to open new db". It'd be better to have a more explicit error message like "db file doesn't exist, use 'c' or 'n' flag to open new db".

    @brettcannon
    Copy link
    Member

    New changeset 81c5a90 by Brett Cannon (Marco Rougeth) in branch 'master':
    bpo-36232: Improve error message on dbm.open() when the db doesn't exist (GH-12060)
    81c5a90

    @corona10
    Copy link
    Member

    I think that this issue solved. Can we close this issue?

    @rougeth rougeth mannequin closed this as completed Sep 25, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    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

    No branches or pull requests

    2 participants