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