From d38b2b040b98b64dc9161e0262c198ae48391dba Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Tue, 9 Jul 2024 09:38:41 +0200 Subject: [PATCH] Try to exclude only based on module --- dojo/settings/settings.dist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo/settings/settings.dist.py b/dojo/settings/settings.dist.py index cb8a6bf706..8480f52ffd 100644 --- a/dojo/settings/settings.dist.py +++ b/dojo/settings/settings.dist.py @@ -1745,8 +1745,8 @@ def saml2_attrib_map_format(dict): warnings.filterwarnings("ignore", message="PolymorphicModelBase._default_manager.*") # TODO - remove these lines, they are here only for testing that following error is the only stopper for upgrade to py3.12 -warnings.filterwarnings("ignore", module="polymorphic", message="pkg_resources is deprecated as an API") # monitor https://github.com/DefectDojo/django-DefectDojo/pull/10334, specially https://github.com/pypi/support/issues/4164 -warnings.filterwarnings("ignore", module="github", message=r"datetime\.datetime\.utcnow\(\) is deprecated and scheduled for removal in a future version\. Use timezone-aware objects to represent datetimes in UTC: datetime\.datetime\.now\(datetime\.UTC\)\.") # monitor https://github.com/DefectDojo/django-DefectDojo/pull/9948 but it might pop-up somewhere else again. pygithub is just first known location. +warnings.filterwarnings("ignore", module="polymorphic") # monitor https://github.com/DefectDojo/django-DefectDojo/pull/10334, specially https://github.com/pypi/support/issues/4164 +warnings.filterwarnings("ignore", module="github") # monitor https://github.com/DefectDojo/django-DefectDojo/pull/9948 but it might pop-up somewhere else again. pygithub is just first known location. # 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.