Skip to content

Commit

Permalink
not lns server detection improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Omicron166 committed Mar 6, 2022
1 parent f0b49ed commit 0b7892d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/python/lns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 0b7892d

Please sign in to comment.