# HG changeset patch # User Thinker K.F. Li # Date 1294837178 -28800 # Node ID 97302d2a0a1d5206e671ce0bd08adafc561908c9 # Parent cd848c2ec29fce7051193a2110dc82b3edc21f9d Raise an error for the error. - Never silent fault - If it is fault, it should be fault. - Don't make fault silent. - fix the fault. - the ID should be in the map, but it is not. It is really a fault. diff -r cd848c2ec29f -r 97302d2a0a1d pyink/domview.py --- a/pyink/domview.py Wed Jan 12 20:52:34 2011 +0800 +++ b/pyink/domview.py Wed Jan 12 20:59:38 2011 +0800 @@ -104,7 +104,8 @@ pass else: if child_id not in self._id2node: - return + raise ValueError, \ + 'remove a node that is never known (%s)' % (child_id) del self._id2node[child_id] pass