Skip to content

Get what appears to be an XML parsing error #2

@jbrule

Description

@jbrule

Any assistance would be appreciated.

*********@******** veracode-scan-counts % python3 vcscancounts.py --all   
Checking 965 applications for incomplete scans
Traceback (most recent call last):
  File "/Users/*********/Projects/veracode-scan-counts/vcscancounts.py", line 41, in get_incomplete_scans
    static_scan = next(scan for scan in scans if scan["scan_type"] == "STATIC")
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/*********//Projects/veracode-scan-counts/vcscancounts.py", line 115, in <module>
    main()
  File "/Users/*********//Projects/veracode-scan-counts/vcscancounts.py", line 98, in main
    this_app_scans = get_incomplete_scans(app)
  File "/Users/*********//Projects/veracode-scan-counts/vcscancounts.py", line 50, in get_incomplete_scans
    appscancount += get_incomplete_sandbox_scans(this_app_guid, this_app_id)
  File "/Users/*********//Projects/veracode-scan-counts/vcscancounts.py", line 66, in get_incomplete_sandbox_scans
    buildid = builds[0].get('build_id')
  File "src/lxml/etree.pyx", line 1176, in lxml.etree._Element.__getitem__
IndexError: list index out of range

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions