[issue3929] Incorrect exception raising in dbm.open on non-existing DB

Amaury Forgeot d'Arc report at bugs.python.org
Mon Sep 22 13:14:24 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

dbm.error is documented as a tuple, and I'd prefer not to change this:
  http://docs.python.org/dev/3.0/library/dbm.html#dbm.error
Since it says that its first member is another dbm.error exception,
we could simply raise error[0](message)

Attached another patch, with the same test case.

----------
keywords: +needs review
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file11556/dbm-2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3929>
_______________________________________


More information about the Python-bugs-list mailing list