mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Template language: fix returns inside for loops failing
This commit is contained in:
parent
c7ca4c9831
commit
07abc41994
@ -903,7 +903,7 @@ class _Interpreter:
|
|||||||
self.break_reporter("'for' list value", '', line_number)
|
self.break_reporter("'for' list value", '', line_number)
|
||||||
ret = ''
|
ret = ''
|
||||||
return ret
|
return ret
|
||||||
except (StopException, ValueError) as e:
|
except (StopException, ValueError, ReturnExecuted) as e:
|
||||||
raise e
|
raise e
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.error(_("Unhandled exception '{0}'").format(e), line_number)
|
self.error(_("Unhandled exception '{0}'").format(e), line_number)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user