This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Slion
Recipients Slion, steve.dower, tim.golden, zach.ware
Date 2015-02-01.15:58:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422806320.68.0.990065034592.issue23371@psf.upfronthosting.co.za>
In-reply-to
Content
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}
History
Date User Action Args
2015-02-01 15:58:40Slionsetrecipients: + Slion, tim.golden, zach.ware, steve.dower
2015-02-01 15:58:40Slionsetmessageid: <1422806320.68.0.990065034592.issue23371@psf.upfronthosting.co.za>
2015-02-01 15:58:40Slionlinkissue23371 messages
2015-02-01 15:58:40Slioncreate