fix(arch): resolve all 14 architecture validation warnings
Some checks failed
Some checks failed
- 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:
@@ -22,6 +22,7 @@ from sqlalchemy.orm import Session
|
||||
from app.modules.tenancy.exceptions import (
|
||||
EmailNotVerifiedException,
|
||||
InvalidCredentialsException,
|
||||
StoreNotFoundException,
|
||||
UserNotActiveException,
|
||||
)
|
||||
from app.modules.tenancy.schemas.auth import UserLogin
|
||||
@@ -103,7 +104,7 @@ class AuthService:
|
||||
|
||||
try:
|
||||
return store_service.get_active_store_by_code(db, store_code)
|
||||
except Exception:
|
||||
except StoreNotFoundException:
|
||||
return None
|
||||
|
||||
def get_user_store_role(
|
||||
|
||||
Reference in New Issue
Block a user