Compare commits
2 commits
60680e4c51
...
bd7b445705
Author | SHA1 | Date | |
---|---|---|---|
bd7b445705 | |||
4c1b1d52d9 |
2 changed files with 1 additions and 13 deletions
|
@ -24,7 +24,7 @@ nav:
|
||||||
plugins:
|
plugins:
|
||||||
- git-authors
|
- git-authors
|
||||||
- search
|
- search
|
||||||
- social
|
#- social
|
||||||
- git-revision-date-localized:
|
- git-revision-date-localized:
|
||||||
enable_creation_date: true
|
enable_creation_date: true
|
||||||
type: timeago
|
type: timeago
|
||||||
|
|
|
@ -475,15 +475,3 @@ class ZiplineApi:
|
||||||
if result.status_code == 401:
|
if result.status_code == 401:
|
||||||
raise Forbidden(result.message)
|
raise Forbidden(result.message)
|
||||||
raise PyZiplineError(f"{result.status_code}: {result.message}\n{result.data}")
|
raise PyZiplineError(f"{result.status_code}: {result.message}\n{result.data}")
|
||||||
Forbidden: The user is not authenticated
|
|
||||||
PyZiplineError: Raised if the API changes, causing a breaking change in this method
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
Version: The version of the Zipline instance
|
|
||||||
"""
|
|
||||||
result = self._rest_adapter.get(endpoint="version")
|
|
||||||
if result.status_code == 200:
|
|
||||||
return Version(**result.data)
|
|
||||||
if result.status_code == 401:
|
|
||||||
raise Forbidden(result.message)
|
|
||||||
raise PyZiplineError(f"{result.status_code}: {result.message}\n{result.data}")
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue