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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23371>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to