Don't explicitly raise a TroveboxError if False is returned,
rely on frontend to issue an error code. This also means we don't need to test for this in unit tests.
This commit is contained in:
parent
6b3f010920
commit
bf437ffc7e
10 changed files with 20 additions and 133 deletions
|
@ -27,11 +27,11 @@ class ApiActivities(ApiBase):
|
|||
Endpoint: /activities/purge.json
|
||||
|
||||
Purges all activities.
|
||||
Currently not working due to frontend issue #1368
|
||||
Returns True if successful.
|
||||
Raises a TroveboxError if not.
|
||||
Currently not working due to frontend issue #1368.
|
||||
"""
|
||||
if not self._client.post("/activities/purge.json", **kwds)["result"]:
|
||||
raise TroveboxError("Purge response returned False")
|
||||
return True
|
||||
return self._client.post("/activities/purge.json", **kwds)["result"]
|
||||
|
||||
class ApiActivity(ApiBase):
|
||||
""" Definitions of /activity/ API endpoints """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue