From a9db2ead3341cc90da482947c9666e6f6c27e326 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 Oct 2019 12:39:36 +0100 Subject: [PATCH] Suppress traceback (fixes #28243) (#28262) --- homeassistant/components/iss/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/iss/binary_sensor.py b/homeassistant/components/iss/binary_sensor.py index 002b2e958f7..3b8e222c912 100644 --- a/homeassistant/components/iss/binary_sensor.py +++ b/homeassistant/components/iss/binary_sensor.py @@ -120,6 +120,6 @@ class IssData: self.next_rise = iss.next_rise(self.latitude, self.longitude) self.number_of_people_in_space = iss.number_of_people_in_space() self.position = iss.current_location() - except requests.exceptions.HTTPError as error: - _LOGGER.error(error) + except (requests.exceptions.HTTPError, requests.exceptions.ConnectionError): + _LOGGER.error("Unable to retrieve data") return False