diff --git a/Packs/Base/ReleaseNotes/1_39_12.md b/Packs/Base/ReleaseNotes/1_39_12.md new file mode 100644 index 000000000000..85dff060477f --- /dev/null +++ b/Packs/Base/ReleaseNotes/1_39_12.md @@ -0,0 +1,6 @@ + +#### Scripts + +##### CommonServerPython + +- Fixed an issue where the 3.12 Python version was displaying a warning and could not be used. \ No newline at end of file diff --git a/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py b/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py index ee888cac7961..eb22128b6319 100644 --- a/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py +++ b/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py @@ -224,6 +224,11 @@ def __del__(self): CONTENT_BRANCH_NAME = 'master' IS_PY3 = sys.version_info[0] == 3 PY_VER_MINOR = sys.version_info[1] + +# a temp fix for the new python docker 3.12, till CIAC-12523 will be done +if IS_PY3 and PY_VER_MINOR >= 12: + warnings.filterwarnings("ignore", category=SyntaxWarning) + STIX_PREFIX = "STIX " # pylint: disable=undefined-variable diff --git a/Packs/Base/pack_metadata.json b/Packs/Base/pack_metadata.json index 2d9fd9590f07..be19dead3de7 100644 --- a/Packs/Base/pack_metadata.json +++ b/Packs/Base/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Base", "description": "The base pack for Cortex XSOAR.", "support": "xsoar", - "currentVersion": "1.39.11", + "currentVersion": "1.39.12", "author": "Cortex XSOAR", "serverMinVersion": "6.0.0", "url": "https://www.paloaltonetworks.com/cortex",