Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelkanda committed Sep 13, 2023
1 parent cca3e68 commit 9d574c0
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions kiota_abstractions/api_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,13 @@ def __str__(self) -> str:
error = getattr(self, "error", None)
if error:
return f"""
APIError
Code: {self.response_status_code}
message: {self.message}
error: {getattr(self, 'error', None)}
"""
APIError
Code: {self.response_status_code}
message: {self.message}
error: {error}
"""
return f"""
APIError
APIError
Code: {self.response_status_code}
message: {self.message}
"""




err = APIError("test", 404, {"test": "test"})
print(err)

0 comments on commit 9d574c0

Please sign in to comment.