fix: The discriminator is empty and the judgment is incorrect (#4166)

This commit is contained in:
shaohuzhang1 2025-10-10 11:07:08 +08:00 committed by GitHub
parent c795cb342a
commit 37e506fc98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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