mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 09:21:16 +08:00
nit: fix exception handling (#2066)
This commit is contained in:
parent
9c6953bda7
commit
68d1b3256b
@ -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)})")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user