Changeset - aaf1f1825009
[Not reviewed]
default
0 1 0
Drew Perttula - 12 years ago 2013-06-09 09:43:35
drewp@bigasterisk.com
error if we have multiple expressions on one subterm
Ignore-this: f2f7f687ce0cf1f01df300a523f78243
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/curvecalc/subterm.py
Show inline comments
 
@@ -113,7 +113,10 @@ class Subterm(object):
 
        """current graph is being passed as an optimization. It should be
 
        equivalent to use self.graph in here."""
 

	
 
        expr = current.value(self.uri, L9['expression'])
 
        objs = list(current.objects(self.uri, L9.expression))
 
        if len(objs) > 1:
 
            raise ValueError("found multiple expressions for %s: %s" %
 
                             (self.uri, objs))
 
        
 
        expr = current.value(self.uri, L9['expression'])
 
        if not expr:
0 comments (0 inline, 0 general)