5291: JPG is not imported

svn: r18457
This commit is contained in:
Michiel Nauta 2011-11-16 17:58:58 +00:00
parent 4c7c5f6be2
commit a7ce1af962

View File

@ -47,9 +47,12 @@ def get_description(mime_type):
progid = _get_prog_id(extension)
if progid:
try:
hcr = ConnectRegistry(None, HKEY_CLASSES_ROOT)
desc = QueryValue(hcr, progid)
CloseKey(hcr)
except WindowsError:
pass
if not desc:
desc = _("unknown")