[New-bugs-announce] [issue36232] Improve error message on dbm.open

Marco Rougeth report at bugs.python.org
Fri Mar 8 05:06:52 EST 2019


New submission from Marco Rougeth <marco at rougeth.com>:

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".

----------
messages: 337462
nosy: rougeth
priority: normal
pull_requests: 12220
severity: normal
status: open
title: Improve error message on dbm.open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36232>
_______________________________________


More information about the New-bugs-announce mailing list