fix(zipline): indentation fix
This commit is contained in:
parent
60680e4c51
commit
4c1b1d52d9
1 changed files with 0 additions and 12 deletions
|
@ -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…
Reference in a new issue