5291: JPG is not imported
svn: r18457
This commit is contained in:
parent
4c7c5f6be2
commit
a7ce1af962
@ -47,9 +47,12 @@ def get_description(mime_type):
|
|||||||
progid = _get_prog_id(extension)
|
progid = _get_prog_id(extension)
|
||||||
|
|
||||||
if progid:
|
if progid:
|
||||||
|
try:
|
||||||
hcr = ConnectRegistry(None, HKEY_CLASSES_ROOT)
|
hcr = ConnectRegistry(None, HKEY_CLASSES_ROOT)
|
||||||
desc = QueryValue(hcr, progid)
|
desc = QueryValue(hcr, progid)
|
||||||
CloseKey(hcr)
|
CloseKey(hcr)
|
||||||
|
except WindowsError:
|
||||||
|
pass
|
||||||
|
|
||||||
if not desc:
|
if not desc:
|
||||||
desc = _("unknown")
|
desc = _("unknown")
|
||||||
|
Loading…
Reference in New Issue
Block a user