1
mirror of https://github.com/home-assistant/core synced 2024-07-27 18:58:57 +02:00

Suppress traceback (fixes #28243) (#28262)

This commit is contained in:
Fabian Affolter 2019-10-27 12:39:36 +01:00 committed by GitHub
parent 7e862e4d92
commit a9db2ead33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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