summaryrefslogtreecommitdiff
path: root/Lib/codecs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r--Lib/codecs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py
index c09f804f1b..5c669c07a5 100644
--- a/Lib/codecs.py
+++ b/Lib/codecs.py
@@ -11,7 +11,11 @@ import struct,types,__builtin__
### Registry and builtin stateless codec functions
-from _codecs import *
+try:
+ from _codecs import *
+except ImportError,why:
+ raise SystemError,\
+ 'Failed to load the builtin codecs: %s' % why
### Constants