diff --git a/shuffle-tools/1.2.0/src/app.py b/shuffle-tools/1.2.0/src/app.py index e24b8d46..e6d0d9d8 100644 --- a/shuffle-tools/1.2.0/src/app.py +++ b/shuffle-tools/1.2.0/src/app.py @@ -277,6 +277,15 @@ def parse(data): return return_value def parse_list(self, items, splitter="\n"): + # Check if it's already a list first + try: + newlist = json.loads(items) + if isinstance(newlist, list): + return newlist + + except Exception as e: + self.logger.info("[WARNING] Parse error - fallback: %s" % e) + if splitter == "": splitter = "\n"