Python vars of unconvertable type return NULL_VALUE

This commit is contained in:
John Wiegley 2009-11-07 06:40:25 -05:00
parent 1a43b22791
commit 9b2c2b6032

View file

@ -354,14 +354,7 @@ value_t python_interpreter_t::functor_t::operator()(call_scope_t& args)
std::signal(SIGINT, sigint_handler);
if (val.check())
return val();
#if 1
// jww (2009-02-24): Distinguish between "no return" and values with
// unconvertable type
return NULL_VALUE;
#else
throw_(calc_error,
_("Could not evaluate Python variable '%1'") << name);
#endif
}
else if (args.size() > 0) {
list arglist;