# HG changeset patch # User Paul Boddie # Date 1276371593 -7200 # Node ID 3851a63280ff19aaabfd2cca1fd58ae13478aa45 # Parent b8c6ae7387238c96eb1dc2921a8a60287255a42d Fixed overwriting of exception source details. diff -r b8c6ae738723 -r 3851a63280ff micropython/common.py --- a/micropython/common.py Sat Jun 12 21:33:36 2010 +0200 +++ b/micropython/common.py Sat Jun 12 21:39:53 2010 +0200 @@ -36,8 +36,9 @@ try: return compiler.visitor.ASTVisitor.dispatch(self, node, *args) except NodeProcessingError, exc: - exc.astnode = node - exc.unit_name = self.full_name() + if exc.astnode is None: + exc.astnode = node + exc.unit_name = self.full_name() raise # Errors.