🎨 Improve code quality

Unnecessary elif / else block after continue
This commit is contained in:
洛水居室 2023-03-15 16:28:04 +08:00
parent 7bca698c18
commit 6e3f7ce815
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -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