diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2022-10-18 21:54:39 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2022-10-18 21:56:01 +0300 |
commit | 175aeb644de5e9271394d56176ba2de8cec2f082 (patch) | |
tree | 4fc7fdbb01ead96761434cc2bd0a0315cf9ffeb4 | |
parent | 077992f51cd105612f72fd2eabc156a7733af055 (diff) |
Turn license expression not normalized error into a warning
-rwxr-xr-x | calm/hint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/hint.py b/calm/hint.py index ead719e..b3e9a70 100755 --- a/calm/hint.py +++ b/calm/hint.py @@ -306,7 +306,7 @@ def hint_file_parse(fn, kind, strict=False): if not le.normalized_expression: warnings.append('errors in license expression: %s' % (le.errors)) elif le.original_expression != le.normalized_expression: - errors.append("license expression: '%s' normalizes to '%s'" % (value, le.normalized_expression)) + warnings.append("license expression: '%s' normalizes to '%s'" % (value, le.normalized_expression)) # warn if value starts with a quote followed by whitespace if re.match(r'^"[ \t]+', value): |