diff --git a/api/services/account_service.py b/api/services/account_service.py index 5b5b6bb652..6973775fcd 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -306,7 +306,7 @@ class AccountService: if not account: return None - if account.status in [AccountStatus.BANNED.value, AccountStatus.CLOSED.value]: + if account.status in {AccountStatus.BANNED.value, AccountStatus.CLOSED.value}: raise Unauthorized("Account is banned or closed.") return account