Merge pull request #151 from specklesystems/cristi/surface_client_error
surface server validation errors
This commit is contained in:
@@ -77,6 +77,8 @@ class SpeckleClient:
|
||||
# Check compatibility with the server
|
||||
try:
|
||||
serverInfo = self.server.get()
|
||||
if isinstance(serverInfo, Exception):
|
||||
raise serverInfo
|
||||
if not isinstance(serverInfo, ServerInfo):
|
||||
raise Exception("Couldn't get ServerInfo")
|
||||
except Exception as ex:
|
||||
|
||||
Reference in New Issue
Block a user