Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Replace validate_xml_string with parse_xml function #1111

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading