Skip to content

Commit

Permalink
fix: use 'message' attribute instead of 'msg'
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Aug 9, 2024
1 parent 65d6b5e commit bf3decb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capvalidator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def validate_xml(cap, strict=True) -> ValidationResult:
return signature_result

# Otherwise, pass but warn the user
if signature_result.msg == "CAP alert has not been signed.":
if signature_result.message == "CAP alert has not been signed.":
warning = "CAP XML file is valid but has not been signed." + \
"Consider signing alerts in the future."
return ValidationResult(True, warning)
Expand Down

0 comments on commit bf3decb

Please sign in to comment.