From c35257b087b972ad790a17cd4894f16bba413842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Wed, 6 Mar 2024 15:32:22 +0100 Subject: [PATCH] Add: Add a specific exception for XML related errors --- gvm/xml.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gvm/xml.py b/gvm/xml.py index 688249709..baac11175 100644 --- a/gvm/xml.py +++ b/gvm/xml.py @@ -18,6 +18,10 @@ from gvm.errors import GvmError, InvalidArgumentType +class XmlError(GvmError): + pass + + def create_parser(): # huge_tree => disable security restrictions and support very deep trees and # very long text content (for get_reports)