fix(zipline): indentation fix

This commit is contained in:
SeaswimmerTheFsh 2024-03-28 11:31:19 -04:00
parent 60680e4c51
commit 4c1b1d52d9
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

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}")