fix: The discriminator is empty and the judgment is incorrect (#4166)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2025-10-10 11:07:08 +08:00 committed by CaptainB
parent 5321b5d43e
commit bccf14bceb

View File

@ -18,4 +18,7 @@ class IsNullCompare(Compare):
return True
def compare(self, source_value, compare, target_value):
return source_value is None or len(source_value) == 0
try:
return source_value is None or len(source_value) == 0
except Exception as e:
return False