Compare commits
No commits in common. "bd7b445705154f22141d83bcad0a806d57ec412e" and "60680e4c518be05a7822103d5b973ba2a16b1283" have entirely different histories.
bd7b445705
...
60680e4c51
2 changed files with 13 additions and 1 deletions
|
@ -24,7 +24,7 @@ nav:
|
|||
plugins:
|
||||
- git-authors
|
||||
- search
|
||||
#- social
|
||||
- social
|
||||
- git-revision-date-localized:
|
||||
enable_creation_date: true
|
||||
type: timeago
|
||||
|
|
|
@ -475,3 +475,15 @@ class ZiplineApi:
|
|||
if result.status_code == 401:
|
||||
raise Forbidden(result.message)
|
||||
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