From aad61582219a2a2576e6d47ff5bcff9c9511a779 Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:02:48 +0200 Subject: [PATCH] Try to exclude pkg_resources warning --- dojo/settings/settings.dist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dojo/settings/settings.dist.py b/dojo/settings/settings.dist.py index 0c62f004bc6..4828cd1e578 100644 --- a/dojo/settings/settings.dist.py +++ b/dojo/settings/settings.dist.py @@ -1744,6 +1744,9 @@ def saml2_attrib_map_format(dict): warnings.filterwarnings("ignore", message="polymorphic.base.ManagerInheritanceWarning.*") warnings.filterwarnings("ignore", message="PolymorphicModelBase._default_manager.*") +# TODO - remove this, it is only for testing that following error is the only stopper for upgrade to py3.12 +warnings.filterwarnings("ignore", message="pkg_resources is deprecated as an API") + # This setting is here to override default renderer of forms (use div-based, instred of table-based). # It has effect only on templates that use "{{ form }}" in the body. Only "Delete forms" now. # The setting is here to avoid RemovedInDjango50Warning. It is here only for transition period.