From 3830706eb1bda1be69f4f912f935d81ee04ce335 Mon Sep 17 00:00:00 2001 From: cristi8 Date: Sun, 2 Jan 2022 11:18:56 +0200 Subject: [PATCH] surface server validation errors --- specklepy/api/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specklepy/api/client.py b/specklepy/api/client.py index 2c36f68..b578797 100644 --- a/specklepy/api/client.py +++ b/specklepy/api/client.py @@ -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: