From 0ba6ccf4a17ef8c9789d3b0ce4a95c7a7f4e88c1 Mon Sep 17 00:00:00 2001 From: Asad Ali Date: Tue, 27 Aug 2024 15:12:04 +0500 Subject: [PATCH] remove black and revert a changes --- authentication/middleware.py | 2 +- scripts/test/python_tests.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/authentication/middleware.py b/authentication/middleware.py index 00dc67dc3..a6a1f948a 100644 --- a/authentication/middleware.py +++ b/authentication/middleware.py @@ -20,7 +20,7 @@ def process_exception(self, request, exception): """ strategy = getattr(request, "social_strategy", None) if strategy is None or self.raise_exception(request, exception): - return None + return if isinstance(exception, SocialAuthBaseException): # noqa: RET503 backend = getattr(request, "backend", None) diff --git a/scripts/test/python_tests.sh b/scripts/test/python_tests.sh index a17bbb4f5..7e3680a8a 100755 --- a/scripts/test/python_tests.sh +++ b/scripts/test/python_tests.sh @@ -16,7 +16,6 @@ function run_test { return $status } -run_test black --check . run_test pytest --no-pylint exit $status