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