Skip to content

Commit b7d9472

Browse files
fix
1 parent 41bd9f2 commit b7d9472

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

apps/application/flow/compare/is_not_null_compare.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ def support(self, node_id, fields: List[str], source_value, compare, target_valu
1818
return True
1919

2020
def compare(self, source_value, compare, target_value):
21-
return source_value is not None and len(source_value) > 0
21+
try:
22+
return source_value is not None and len(source_value) > 0
23+
except Exception:
24+
return source_value is not None

apps/application/flow/compare/is_null_compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ def support(self, node_id, fields: List[str], source_value, compare, target_valu
2020
def compare(self, source_value, compare, target_value):
2121
try:
2222
return source_value is None or len(source_value) == 0
23-
except Exception as e:
24-
return False
23+
except Exception:
24+
return source_value is None

0 commit comments

Comments
 (0)