[New-bugs-announce] [issue12382] [msilib] Ambiguous exception message when trying to open a non existing MSI database
Robin Jarry
report at bugs.python.org
Tue Jun 21 14:12:17 CEST 2011
New submission from Robin Jarry <diabeteman at gmail.com>:
When trying to open a non existing MSI database, an obscure "unknown error 6e" is raised.
Could it be possible to get a more explicit message such as "File not found" or whatever ?
Thanks :)
Here is a example:
--------------------------------
D:\>ll
total 0
drwxr-xr-x 4 tcinteg Administ 0 Nov 30 2010 RECYCLER
drwxr-xr-x 0 tcinteg Administ 0 Jul 6 2009 System Volume Information
drwxr-xr-x 4 tcinteg Administ 0 Apr 29 16:03 TC
drwxr-xr-x 3 tcinteg Administ 0 Apr 29 15:43 stgloc
D:\>python
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import msilib
>>> db = msilib.OpenDatabase("I_Do_Not_Exist.msi", msilib.MSIDBOPEN_READONLY)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_msi.MSIError: unknown error 6e
>>>
----------
components: Library (Lib)
messages: 138781
nosy: Robin.Jarry, loewis
priority: normal
severity: normal
status: open
title: [msilib] Ambiguous exception message when trying to open a non existing MSI database
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12382>
_______________________________________
More information about the New-bugs-announce
mailing list