From 8e854c95b727b7f6a23dddb04902a9765cfd0895 Mon Sep 17 00:00:00 2001 From: Bingsu Date: Sat, 24 Jun 2023 22:46:32 +0900 Subject: [PATCH] fix: is_ad_enabled dict type --- scripts/!adetailer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/!adetailer.py b/scripts/!adetailer.py index 0829836..2502f65 100644 --- a/scripts/!adetailer.py +++ b/scripts/!adetailer.py @@ -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}