We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d97930 commit 132c53bCopy full SHA for 132c53b
flow/util/checkMetadata.py
@@ -77,7 +77,12 @@ def try_number(string):
77
compare = rule['compare']
78
op = ops[compare]
79
rule_value = try_number(rule['value'])
80
- build_value = try_number(metadata[field])
+
81
+ if field in metadata.keys():
82
+ build_value = try_number(metadata[field])
83
+ else:
84
+ print(f"[ERROR] Value not found for {field}.")
85
+ sys.exit(1)
86
87
formatError = list()
88
if not isinstance(rule_value, float):
0 commit comments