From 37fb9d8fce9ed2966c8128309147f7eb3bb1c7b4 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 18 May 2022 14:24:05 -0500 Subject: [PATCH] first init of rewrite --- pyteamsnap/api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyteamsnap/api.py b/pyteamsnap/api.py index d73d7b6..2b90e07 100644 --- a/pyteamsnap/api.py +++ b/pyteamsnap/api.py @@ -14,7 +14,10 @@ class ApiObject(): @classmethod def search(cls, client, **kwargs): - results = client.query(cls.rel, "search", **kwargs) + try: + results = client.query(cls.rel, "search", **kwargs) + except ServerError as e: + pass return [cls(client,rel=cls.rel, data=r) for r in results] @classmethod