diff --git a/pyproject.toml b/pyproject.toml index 99d5c3b..6e3e07f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "socketsecurity" -version = "2.0.42" +version = "2.0.43" requires-python = ">= 3.10" license = {"file" = "LICENSE"} dependencies = [ diff --git a/socketsecurity/__init__.py b/socketsecurity/__init__.py index 1ea0a22..beda9f7 100644 --- a/socketsecurity/__init__.py +++ b/socketsecurity/__init__.py @@ -1,2 +1,2 @@ __author__ = 'socket.dev' -__version__ = '2.0.42' +__version__ = '2.0.43' diff --git a/socketsecurity/core/messages.py b/socketsecurity/core/messages.py index 435afe5..c54df14 100644 --- a/socketsecurity/core/messages.py +++ b/socketsecurity/core/messages.py @@ -2,8 +2,6 @@ import logging import re from pathlib import Path - -from docutils.nodes import title from mdutils import MdUtils from prettytable import PrettyTable @@ -235,7 +233,7 @@ def create_security_comment_sarif(diff) -> dict: unique_rule_id = f"{base_rule_id} ({mf})" rule_name = f"Alert {base_rule_id} ({mf})" props = {} - if hasattr(alert, 'props'): + if hasattr(alert, 'props') and alert.props: props = alert.props suggestion = '' if hasattr(alert, 'suggestion'):