[New-bugs-announce] [issue23371] mimetypes initialization fails on Windows because of TypeError
Stéphane Lenclud
report at bugs.python.org
Sun Feb 1 16:58:40 CET 2015
New submission from Stéphane Lenclud:
On my Windows 7 installation mimetypes.py in read_windows_registry _winreg.OpenKey can throw a TypeError exception which is not handled and interrupts the execution.
To fix it I added:
except TypeError:
continue
To reproduce it I just need to run te following:
c:\python27\python -c "import mimetypes; mimetypes.init()"
This error is obviously due to the content of my registry.
The subkeyname causing issues have names like:
{hexid-hexid-hexid-hexid-hexid}
----------
components: Windows
messages: 235179
nosy: Slion, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: mimetypes initialization fails on Windows because of TypeError
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23371>
_______________________________________
More information about the New-bugs-announce
mailing list