diff --git a/clients/python/lns.py b/clients/python/lns.py index 1d95bf3..885dbce 100644 --- a/clients/python/lns.py +++ b/clients/python/lns.py @@ -18,7 +18,8 @@ def __init__(self, server: str): self.server = 'http://' + url.netloc else: self.server = url.scheme + '://' + url.netloc - status = requests.get(self.server + '/index.json').json() + try: status = requests.get(self.server + '/index.json').json() + except: raise IncompatibleServer if not status['version'] in server_version: raise IncompatibleServer()