]> granicus.if.org Git - python/commit
bpo-12382: Make OpenDatabase() raise better exception messages (GH-4528)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Nov 2017 10:31:21 +0000 (02:31 -0800)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 24 Nov 2017 10:31:21 +0000 (13:31 +0300)
commitbfa89b21e119bac7fed4a5decc26f1fff8ec359e
tree60358ab68ad7611fc5e44d94270e7cdb6eee378a
parent90abbee7aa8a254fba2d8fdebc574cb8426899dc
bpo-12382: Make OpenDatabase() raise better exception messages (GH-4528)

Previously, 'msilib.OpenDatabase()' function raised a
cryptical exception message when it couldn't open or
create an MSI file. For example:

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    _msi.MSIError: unknown error 6e

(cherry picked from commit 4864a619dc1cc9092780ccf5a6327e8abf66133d)
Lib/test/test_msilib.py
Misc/NEWS.d/next/Library/2017-11-23-21-47-36.bpo-12382.xWT9k0.rst [new file with mode: 0644]
PC/_msi.c