From 6f548c9c0d4d286927f7ec888b68e437cfb12cb8 Mon Sep 17 00:00:00 2001 From: Sayantan Patra <68266225+sayantancodex@users.noreply.github.com> Date: Fri, 6 Oct 2023 19:43:00 +0530 Subject: [PATCH] Updated more efficient exception.py --- appwrite/exception.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appwrite/exception.py b/appwrite/exception.py index 146e7a7..edfacec 100644 --- a/appwrite/exception.py +++ b/appwrite/exception.py @@ -1,7 +1,7 @@ class AppwriteException(Exception): - def __init__(self, message, code = 0, type = None, response = None): + def __init__(self, message, code=0, error_type=None, response=None): self.message = message self.code = code - self.type = type + self.error_type = error_type self.response = response - super().__init__(self.message) \ No newline at end of file + super().__init__(message)