Commit c3a11b9e authored by Stefan Behnel's avatar Stefan Behnel

error in compile-time attribute access

parent 21950627
......@@ -2618,7 +2618,7 @@ class AttributeNode(ExprNode):
self.error("Invalid attribute name '%s' in compile-time expression"
% attr)
return None
obj = self.arg.compile_time_value(denv)
obj = self.obj.compile_time_value(denv)
try:
return getattr(obj, attr)
except Exception, e:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment