refactor(errors): replace silent exception handling in core packages
This commit is contained in:
1 parent
584bb2d09c
commit
47e7cb6620
21 files changed
+132
-58
No files matched your search
@@ -152,7 +152,8 @@ class DevicePool:
|
||||
if proc is not None:
|
||||
try:
|
||||
proc.kill()
|
||||
except Exception:
|
||||
except (ProcessLookupError, OSError):
|
||||
# Process already exited; nothing left to clean up.
|
||||
pass
|
||||
return None
|
||||
|
||||
@@ -256,7 +257,8 @@ class DevicePool:
|
||||
if proc is not None:
|
||||
try:
|
||||
proc.kill()
|
||||
except Exception:
|
||||
except (ProcessLookupError, OSError):
|
||||
# Process already exited; nothing left to clean up.
|
||||
pass
|
||||
|
||||
async def warm_up_async(
|
||||
|
||||
Reference in new issue
Block a user