From 68d1b3256b2bfc159471b9a34578c2ceec6d804c Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Fri, 11 Apr 2025 14:12:08 -0700 Subject: [PATCH] nit: fix exception handling (#2066) --- python/mlx/distributed_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mlx/distributed_run.py b/python/mlx/distributed_run.py index 3391ba620..9c946005b 100644 --- a/python/mlx/distributed_run.py +++ b/python/mlx/distributed_run.py @@ -172,7 +172,7 @@ def parse_hostfile(parser, hostfile): for i, h in enumerate(json.load(f)): hosts.append(Host(i, h["ssh"], h.get("ips", []))) return hosts - except e: + except Exception as e: parser.error(f"Failed to parse hostfile {str(hostfile)} ({str(e)})")