You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As the VM export does not display any WAS finding, I used the export function in the WAS API.
The function raises an error stating the object is type of "NoneType" and therefore not subscriptable - even though findings exists on the instance.
To Reproduce
> ptpython
>>> from tenable.io import TenableIO
>>> tvm = TenableIO()
>>> tvm.was.export()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/lib/python3.13/site-packages/tenable/io/was/api.py", line 61, in export
parent_scan_ids_with_finalized_at = [_parent_id_with_finalized_at(sc) for sc in scan_config if sc]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
File "/opt/homebrew/lib/python3.13/site-packages/tenable/io/was/api.py", line 183, in _parent_id_with_finalized_at
"parent_scan_id": scan_config["last_scan"]["scan_id"],
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
Expected behavior
Fetch Web Application Scan results
Screenshots
System Information (please complete the following information):
OS: MacOS
64-bit
Additional context
Name: pyTenable
Version: 1.6.0
The text was updated successfully, but these errors were encountered:
Describe the bug
As the VM export does not display any WAS finding, I used the export function in the WAS API.
The function raises an error stating the object is type of "NoneType" and therefore not subscriptable - even though findings exists on the instance.
To Reproduce
Expected behavior
Fetch Web Application Scan results
Screenshots
System Information (please complete the following information):
Additional context
Name: pyTenable
Version: 1.6.0
The text was updated successfully, but these errors were encountered: