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

error atribute "name" on python 3 #14

Open
frenyman opened this issue Oct 19, 2022 · 1 comment
Open

error atribute "name" on python 3 #14

frenyman opened this issue Oct 19, 2022 · 1 comment

Comments

@frenyman
Copy link

error python 3.9

Traceback (most recent call last):
  File "/opt/scripts/Nmap-XML-to-CSV/xml2csv.py", line 332, in <module>
    main()
  File "/opt/scripts/Nmap-XML-to-CSV/xml2csv.py", line 254, in main
    data = parse_xml(filename)
  File "/opt/scripts/Nmap-XML-to-CSV/xml2csv.py", line 118, in parse_xml
    scan_data = get_host_data(root)
  File "/opt/scripts/Nmap-XML-to-CSV/xml2csv.py", line 74, in get_host_data
    service = port.findall('service')[0].attrib['name']
KeyError: 'name'
@jose-devcode
Copy link

I have this same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants