commit | 9df346bf98069a87de14a3c2f69009d800994c63 | [log] [tgz] |
---|---|---|
author | Zsolt Cserna <cserna.zsolt@gmail.com> | Thu Sep 27 21:54:34 2018 +0200 |
committer | Berker Peksag <berker.peksag@gmail.com> | Thu Sep 27 22:54:34 2018 +0300 |
tree | a05c995a24c0182d60b80eebbe0009dcd506117e | |
parent | 59ee5b12938efbf534f2a19300a847bf6b23a77d [diff] |
bpo-34248: Add filename to error raised in {gnu,ndbm}.open() (GH-8590) Report the filename to the exception when raising {gdbm,dbm.ndbm}.error in dbm.gnu.open() and dbm.ndbm.open() functions, so it gets printed when the exception is raised, and can also be obtained by the filename attribute of the exception object.