first init of rewrite
This commit is contained in:
@@ -14,7 +14,10 @@ class ApiObject():
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def search(cls, client, **kwargs):
|
def search(cls, client, **kwargs):
|
||||||
|
try:
|
||||||
results = client.query(cls.rel, "search", **kwargs)
|
results = client.query(cls.rel, "search", **kwargs)
|
||||||
|
except ServerError as e:
|
||||||
|
pass
|
||||||
return [cls(client,rel=cls.rel, data=r) for r in results]
|
return [cls(client,rel=cls.rel, data=r) for r in results]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user