From 6e3f7ce815bfe779d1641fb48000ae7206be0c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 15 Mar 2023 16:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Improve=20code=20quality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unnecessary elif / else block after continue --- core/services/cookies/services.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/services/cookies/services.py b/core/services/cookies/services.py index 349f0d82..237b039b 100644 --- a/core/services/cookies/services.py +++ b/core/services/cookies/services.py @@ -131,8 +131,7 @@ class PublicCookiesService(BaseService): await self._repository.update(cookies) await self._cache.delete_public_cookies(cookies.user_id, region) continue - else: - raise exc + raise exc except Exception as exc: await self._cache.delete_public_cookies(cookies.user_id, region) raise exc