mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
fix: The discriminator is empty and the judgment is incorrect (#4166)
This commit is contained in:
parent
5321b5d43e
commit
bccf14bceb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue