Commits

Robert Brewer  committed e965310

Exception tweak.

  • Participants
  • Parent commits 81215a9

Comments (0)

Files changed (1)

File flowrate/variables.py

         else:
             l = self.locals
 
-        return eval(source, self.globals, l)
+        try:
+            return eval(source, self.globals, l)
+        except Exception, e:
+            e.args += (source, extra_locals)
+            raise
 
     def bind(self, name, source):
         """Register the given source."""