Skip to content

Commit

Permalink
Fix: Replace validate_xml_string with parse_xml function
Browse files Browse the repository at this point in the history
validate_xml_string got removed from the latest release.
  • Loading branch information
bjoernricks committed Jun 19, 2024
1 parent f4e7021 commit 70199ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gvmtools/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from gvm.protocols.gmp import Gmp
from gvm.protocols.latest import Osp
from gvm.transforms import CheckCommandTransform
from gvm.xml import pretty_print, validate_xml_string
from gvm.xml import parse_xml, pretty_print

from gvmtools.helper import authenticate, do_not_run_as_root
from gvmtools.parser import (
Expand Down Expand Up @@ -104,7 +104,7 @@ def main():
xml = input()

try:
validate_xml_string(xml)
parse_xml(xml)
except GvmError as e:
print(e, file=sys.stderr)
sys.exit(1)
Expand Down

0 comments on commit 70199ef

Please sign in to comment.