Fix rare problem where the formatter gets a tuple instead of a list.

This commit is contained in:
Charles Haley 2022-04-19 16:01:29 +01:00
parent c2428b3d09
commit 31524e1f80

View File

@ -840,7 +840,7 @@ class _Interpreter:
f = self.expr(prog.list_field_expr) f = self.expr(prog.list_field_expr)
res = getattr(self.parent_book, f, f) res = getattr(self.parent_book, f, f)
if res is not None: if res is not None:
if not isinstance(res, list): if isinstance(res, str):
res = [r.strip() for r in res.split(separator) if r.strip()] res = [r.strip() for r in res.split(separator) if r.strip()]
ret = '' ret = ''
if self.break_reporter: if self.break_reporter: