fix: is_ad_enabled dict type

This commit is contained in:
Bingsu
2023-06-24 22:46:32 +09:00
parent 1789e3105d
commit 8e854c95b7

View File

@@ -148,7 +148,7 @@ class AfterDetailerScript(scripts.Script):
)
def is_ad_enabled(self, *args_) -> bool:
if len(args_) == 0 or (len(args_) == 1 and isinstance(args_[0], bool)):
if len(args_) == 0 or (len(args_) == 1 and not isinstance(args_[0], dict)):
message = f"""
[-] ADetailer: Not enough arguments passed to ADetailer.
input: {args_!r}