(self)
return True
Check if the Sat-IP server is reachable

        The server address could be specified directly instead of
        auto-discovered. Hence, it is worth double-checking the server can be
        reached by this client.

        Returns:
            Boolean indicating whether the Sat-IP server is reachable.
Check if the Sat-IP server is reachable
Check if the Sat - IP server is reachable
def check_reachable(self):
        """Check if the Sat-IP server is reachable

        The server address could be specified directly instead of
        auto-discovered. Hence, it is worth double-checking the server can be
        reached by this client.

        Returns:
            Boolean indicating whether the Sat-IP server is reachable.

        """
        self._assert_addr()

        try:
            r = requests.get(self.base_url)
            r.raise_for_status()
        except requests.exceptions.ConnectionError as errc:
            logger.error("Connection Error: {}".format(errc))
            return False
        except requests.exceptions.HTTPError as errh:
            logger.error("HTTP Error: {}".format(errh))
            return False
        except requests.exceptions.RequestException as err:
            logger.error("Error: {}".format(err))
            return False

        return True
def check_reachable ( self ) : self . _assert_addr ( ) try : r = requests . get ( self . base_url ) r . raise_for_status ( ) except requests . exceptions . ConnectionError as errc : logger . error ( "Connection Error: {}" . format ( errc ) ) return False except requests . exceptions . HTTPError as errh : logger . error ( "HTTP Error: {}" . format ( errh ) ) return False except requests . exceptions . RequestException as err : logger . error ( "Error: {}" . format ( err ) ) return False return True