From 9d574c016f03b45992349d33f18d3e59cd2015de Mon Sep 17 00:00:00 2001 From: samwelkanda Date: Wed, 13 Sep 2023 18:14:56 +0300 Subject: [PATCH] Fix indentation --- kiota_abstractions/api_error.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/kiota_abstractions/api_error.py b/kiota_abstractions/api_error.py index 2acb6f8..6cdb7a7 100644 --- a/kiota_abstractions/api_error.py +++ b/kiota_abstractions/api_error.py @@ -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)