From 3f4eab90b8c8771556d4f57b66001d05c8ddbcd5 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Wed, 31 Dec 2025 21:49:23 +0100 Subject: [PATCH] fix: remove unused ShopVerificationException (NAM-004) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove legacy ShopVerificationException class that was never used. VendorVerificationException already exists and serves the same purpose. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/exceptions/admin.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/app/exceptions/admin.py b/app/exceptions/admin.py index a6f39049..ee26fb6f 100644 --- a/app/exceptions/admin.py +++ b/app/exceptions/admin.py @@ -58,30 +58,6 @@ class UserStatusChangeException(BusinessLogicException): ) -class ShopVerificationException(BusinessLogicException): - """Raised when shop verification fails.""" - - def __init__( - self, - shop_id: int, - reason: str, - current_verification_status: bool | None = None, - ): - details = { - "shop_id": shop_id, - "reason": reason, - } - - if current_verification_status is not None: - details["current_verification_status"] = current_verification_status - - super().__init__( - message=f"Shop verification failed for shop {shop_id}: {reason}", - error_code="SHOP_VERIFICATION_FAILED", - details=details, - ) - - class AdminOperationException(BusinessLogicException): """Raised when admin operation fails."""