fix(arch): resolve all 14 architecture validation warnings
Some checks failed
CI / ruff (push) Successful in 11s
CI / pytest (push) Failing after 44m18s
CI / validate (push) Successful in 23s
CI / dependency-scanning (push) Successful in 28s
CI / docs (push) Has been skipped
CI / deploy (push) Has been skipped

- Add missing module dependency declarations (IMPORT-002): analytics
  requires catalog/inventory/marketplace/orders, orders requires
  marketplace, inventory requires orders
- Replace broad except Exception with specific types (EXC-003):
  StoreNotFoundException in auth_service, PlatformNotFoundException in
  admin_subscription_service, SQLAlchemyError in customer_service
- Use number_stepper macro in loyalty program-edit template (FE-008)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 06:24:57 +01:00
parent 86e85a98b8
commit 8c0967e215
7 changed files with 10 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ from app.modules.billing.models import (
SubscriptionStatus,
SubscriptionTier,
)
from app.modules.tenancy.exceptions import PlatformNotFoundException
logger = logging.getLogger(__name__)
@@ -316,7 +317,7 @@ class AdminSubscriptionService:
try:
p = platform_service.get_platform_by_id(db, platform_id)
return p.name
except Exception:
except PlatformNotFoundException:
return None
# =========================================================================