From 3df62326e5bd8b405f2c52b63d84549d97fa8eef Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 14 Nov 2023 13:48:29 -0600 Subject: [PATCH] fix base exception shadowing exception --- esphome/dashboard/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/dashboard/dashboard.py b/esphome/dashboard/dashboard.py index 349caa6299..ac33d38002 100644 --- a/esphome/dashboard/dashboard.py +++ b/esphome/dashboard/dashboard.py @@ -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