diff --git a/lib/galaxy/managers/workflows.py b/lib/galaxy/managers/workflows.py index d3f70b683215..57c59240427c 100644 --- a/lib/galaxy/managers/workflows.py +++ b/lib/galaxy/managers/workflows.py @@ -908,8 +908,11 @@ def convert_to_dict_from_many(self, obj, depth=0, max_depth=5): else: items = obj.__dict__.items() # Custom object case - return {key: self.convert_to_dict_from_many(value, depth=depth + 1, max_depth=max_depth) - for key, value in items if not key.startswith('_')} + return { + key: self.convert_to_dict_from_many(value, depth=depth + 1, max_depth=max_depth) + for key, value in items + if not key.startswith("_") + } else: return obj