@@ -1082,7 +1082,7 @@ def _wait_until_all_ready(self):
10821082
10831083 try :
10841084 _ = asyncio .get_event_loop ()
1085- except :
1085+ except Exception :
10861086 loop = asyncio .new_event_loop ()
10871087 asyncio .set_event_loop (loop )
10881088
@@ -1092,7 +1092,7 @@ async def _f():
10921092 running_in_event_loop = False
10931093 try :
10941094 asyncio .get_event_loop ().run_until_complete (_f ())
1095- except :
1095+ except Exception :
10961096 running_in_event_loop = True
10971097
10981098 if not running_in_event_loop :
@@ -1193,7 +1193,7 @@ def wait_start_success(self) -> None:
11931193 self .gateway_pod .wait_start_success ()
11941194 for shard_id in self .shards :
11951195 self .shards [shard_id ].wait_start_success ()
1196- except :
1196+ except Exception :
11971197 self .close ()
11981198 raise
11991199
@@ -1217,7 +1217,7 @@ async def async_wait_start_success(self) -> None:
12171217
12181218 await asyncio .gather (* coros )
12191219 self .logger .debug ('Deployment started successfully' )
1220- except :
1220+ except Exception :
12211221 self .close ()
12221222 raise
12231223
@@ -1288,7 +1288,7 @@ def _parse_devices(value: str, num_devices: int):
12881288 if len (parts ) == 1 :
12891289 try :
12901290 int (parts [0 ])
1291- except :
1291+ except Exception :
12921292 use_uuids = True
12931293 if use_uuids :
12941294 return parts
@@ -1297,7 +1297,7 @@ def _parse_devices(value: str, num_devices: int):
12971297 # try to detect if parts are not numbers
12981298 try :
12991299 int (parts [0 ])
1300- except :
1300+ except Exception :
13011301 use_uuids = True
13021302
13031303 if not use_uuids :
@@ -1328,7 +1328,7 @@ def _roundrobin_cuda_device(device_str: Optional[str], replicas: int):
13281328 num_devices = str (subprocess .check_output (['nvidia-smi' , '-L' ])).count (
13291329 'UUID'
13301330 )
1331- except :
1331+ except Exception :
13321332 num_devices = int (os .environ .get ('CUDA_TOTAL_DEVICES' , 0 ))
13331333 if num_devices == 0 :
13341334 return
0 commit comments