This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Robin.Jarry
Recipients Robin.Jarry, loewis
Date 2011-06-21.12:12:15
SpamBayes Score 4.817702e-12
Marked as misclassified No
Message-id <1308658337.05.0.630810191443.issue12382@psf.upfronthosting.co.za>
In-reply-to
Content
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
>>>
History
Date User Action Args
2011-06-21 12:12:17Robin.Jarrysetrecipients: + Robin.Jarry, loewis
2011-06-21 12:12:17Robin.Jarrysetmessageid: <1308658337.05.0.630810191443.issue12382@psf.upfronthosting.co.za>
2011-06-21 12:12:16Robin.Jarrylinkissue12382 messages
2011-06-21 12:12:15Robin.Jarrycreate