[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

stoyanov report at bugs.python.org
Thu Apr 24 22:07:48 CEST 2014


stoyanov added the comment:

Alternative temporary solution
def enum_types(mimedb):
....
try:
  ctype = ctype.encode(default_encoding) # omit in 3.x!
except UnicodeEncodeError:
  pass
except Exception: #<--
  pass            #<--
else:
  yield ctype

----------
nosy: +quick.es

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9291>
_______________________________________


More information about the Python-bugs-list mailing list