mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 23:18:05 +08:00
chore: PLR6201 Use a set literal when testing for membership
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user