summaryrefslogtreecommitdiff
path: root/src/py_value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/py_value.cc')
-rw-r--r--src/py_value.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py_value.cc b/src/py_value.cc
index 86311736..eec3b833 100644
--- a/src/py_value.cc
+++ b/src/py_value.cc
@@ -51,7 +51,7 @@ namespace {
{
if (value.is_scope()) {
if (scope_t * scope = value.as_scope())
- return expr_t(scope->lookup(name), scope);
+ return expr_t(scope->lookup(symbol_t::FUNCTION, name), scope);
}
throw_(value_error, _("Cannot lookup attributes in %1") << value.label());
return expr_t();