mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1906063: regression: template function first_non_empty fails if no argument evaluates non-empty
This commit is contained in:
parent
91306f57d0
commit
ab261d43fa
@ -538,6 +538,7 @@ class _Interpreter(object):
|
|||||||
for expr in prog.expression_list:
|
for expr in prog.expression_list:
|
||||||
if v := self.expr(expr):
|
if v := self.expr(expr):
|
||||||
return v
|
return v
|
||||||
|
return ''
|
||||||
|
|
||||||
NODE_OPS = {
|
NODE_OPS = {
|
||||||
Node.NODE_IF: do_node_if,
|
Node.NODE_IF: do_node_if,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user