[pywin32-bugs] [ pywin32-Bugs-723887 ] makepy crash on protected typelib registry key
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2003-04-21 10:35:52
|
Bugs item #723887, was opened at 2003-04-19 06:51 Message generated for change (Settings changed) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=723887&group_id=78018 Category: com Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: bob gailer (ramrom) Assigned to: Nobody/Anonymous (nobody) Summary: makepy crash on protected typelib registry key Initial Comment: If a typelib registry key is protected from the logged on user, makepy aborts: File "E:\Python22\lib\site-packages\win32com\client\selecttlb.py", line 68, in EnumTlbs key2 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\%s" % (iid)) error: (5, 'RegOpenKeyEx', 'Access is denied.') This happened on Win NT 4 logged on as administrator. A simple modification to the code to ignore such keys will allow the user to get a list of permitted keys instead of aborting. See attachment. I added lines 75 (try) and 118 (except) to ignore protected keys ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2003-04-21 20:35 Message: Logged In: YES user_id=14198 Thanks - I checked the fix in. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=723887&group_id=78018 |