Skip to content

Commit

Permalink
Add: Add a specific exception for XML related errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks authored and greenbonebot committed Jun 14, 2024
1 parent 5e05c98 commit c35257b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gvm/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c35257b

Please sign in to comment.