* src/Mime/_WinMime.py: potential fix for #446

svn: r7393
This commit is contained in:
Brian Matherly 2006-10-11 14:27:22 +00:00
parent de82fc89df
commit 73eb3d9d27
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2006-10-11 Brian Matherly <brian@gramps-project.org>
* src/Mime/_WinMime.py: potential fix for #446
2006-10-10 Alex Roitman <shura@gramps-project.org> 2006-10-10 Alex Roitman <shura@gramps-project.org>
* configure.in: Update version number. * configure.in: Update version number.
* NEWS: Update. * NEWS: Update.

View File

@ -80,7 +80,11 @@ def get_application(type):
subkey = OpenKey(hcu, "Software\Microsoft\Windows\ShellNoRoam\MUICache") subkey = OpenKey(hcu, "Software\Microsoft\Windows\ShellNoRoam\MUICache")
desc = None desc = None
if subkey: if subkey:
desc,type = QueryValueEx(subkey, app) try:
desc,ValType = QueryValueEx(subkey, app)
except:
# No friendly name exists. Use progId
desc = progId
CloseKey(subkey) CloseKey(subkey)
else: else:
desc = progId desc = progId