[pypy-svn] r34367 - pypy/dist/pypy/annotation
arigo at codespeak.net
arigo at codespeak.net
Wed Nov 8 14:52:28 CET 2006
Author: arigo
Date: Wed Nov 8 14:52:26 2006
New Revision: 34367
Modified:
pypy/dist/pypy/annotation/annrpython.py
Log:
Fix the crash in ondegenerated() that sometimes hides the real error
message.
Modified: pypy/dist/pypy/annotation/annrpython.py
==============================================================================
--- pypy/dist/pypy/annotation/annrpython.py (original)
+++ pypy/dist/pypy/annotation/annrpython.py Wed Nov 8 14:52:26 2006
@@ -312,8 +312,8 @@
graph = position_key[0]
msgstr = format_someobject_error(self, position_key, what, s_value,
- called_from_graph, self.bindings[what])
-
+ called_from_graph,
+ self.bindings.get(what, "(none)"))
raise AnnotatorError(msgstr)
More information about the Pypy-commit
mailing list