Compare commits

..

2 commits

Author SHA1 Message Date
bd7b445705
fix(docs): disabled social plugin due to build failure
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 22s
Actions / Build Documentation (MkDocs) (push) Successful in 22s
2024-03-28 11:31:45 -04:00
4c1b1d52d9
fix(zipline): indentation fix 2024-03-28 11:31:19 -04:00
2 changed files with 1 additions and 13 deletions

View file

@ -24,7 +24,7 @@ nav:
plugins:
- git-authors
- search
- social
#- social
- git-revision-date-localized:
enable_creation_date: true
type: timeago

View file

@ -475,15 +475,3 @@ 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}")