[pypy-commit] pypy default: catch proper exception here
bdkearns
noreply at buildbot.pypy.org
Wed Feb 6 22:00:13 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r60916:84dc0de034e8
Date: 2013-02-06 12:59 -0800
http://bitbucket.org/pypy/pypy/changeset/84dc0de034e8/
Log: catch proper exception here
diff --git a/pypy/module/unicodedata/interp_ucd.py b/pypy/module/unicodedata/interp_ucd.py
--- a/pypy/module/unicodedata/interp_ucd.py
+++ b/pypy/module/unicodedata/interp_ucd.py
@@ -40,7 +40,7 @@
# Host CPython is narrow build, accept surrogates
try:
return ord_accepts_surrogate(space.unicode_w(w_unichr))
- except ValueError:
+ except TypeError:
raise OperationError(space.w_TypeError, space.wrap(
'need a single Unicode character as parameter'))
else:
More information about the pypy-commit
mailing list