mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 14:18:14 +00:00
fix base exception shadowing exception
This commit is contained in:
parent
16073c934c
commit
3df62326e5
@ -1096,10 +1096,10 @@ class PingStatus:
|
||||
return_exceptions=True,
|
||||
)
|
||||
for entry, result in zip(ping_group, results):
|
||||
if isinstance(result, BaseException):
|
||||
raise result
|
||||
if isinstance(result, Exception):
|
||||
result = False
|
||||
elif isinstance(result, BaseException):
|
||||
raise result
|
||||
PING_RESULT[entry.filename] = result
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user