mirror of https://github.com/langgenius/dify.git
chore: PLR6201 Use a set literal when testing for membership
This commit is contained in:
parent
cd277aa2d8
commit
18adee6882
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue