[pypy-svn] r50841 - pypy/dist/pypy/tool
arigo at codespeak.net
arigo at codespeak.net
Mon Jan 21 16:21:58 CET 2008
Author: arigo
Date: Mon Jan 21 16:21:58 2008
New Revision: 50841
Modified:
pypy/dist/pypy/tool/error.py
Log:
Got a KeyError here...
Modified: pypy/dist/pypy/tool/error.py
==============================================================================
--- pypy/dist/pypy/tool/error.py (original)
+++ pypy/dist/pypy/tool/error.py Mon Jan 21 16:21:58 2008
@@ -114,7 +114,12 @@
def format_simple_call(annotator, oper, what, msg):
msg.append("Simple call of incompatible family:")
- descs = annotator.bindings[oper.args[0]].descriptions
+ try:
+ descs = annotator.bindings[oper.args[0]].descriptions
+ except (KeyError, AttributeError), e:
+ msg.append(" (%s getting at the binding!)" % (
+ e.__class__.__name__,))
+ return
for desc in descs.keys():
func = desc.pyobj
if func is None:
More information about the Pypy-commit
mailing list