[ZCM] [ZC] 1735/ 1 Request "UnicodeError masks other startup errors"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed Mar 23 17:49:37 EST 2005
Issue #1735 Update (Request) "UnicodeError masks other startup errors"
Status Pending, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/1735
==============================================================
= Request - Entry #1 by gagenellina on Mar 23, 2005 5:49 pm
In (Zope)\lib\python\ZConfig\loader.py, method schemaComponentSource, there is an import:
try:
__import__(package)
except ImportError, e:
raise ZConfig.SchemaError("could not load package %s: %s"
% (package, str(e)))
str(e) fails if the message (possibly coming from the OS) contains non-ascii characters, giving error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 14: ordinal not in range(128)
and masking the original error (can't load package xxx).
==============================================================
More information about the Zope-Collector-Monitor
mailing list