parent
7e862e4d92
commit
a9db2ead33
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue