Python vars of unconvertable type return NULL_VALUE
This commit is contained in:
parent
1a43b22791
commit
9b2c2b6032
1 changed files with 0 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue