nessus-file-analyzer
nessus-file-analyzer copied to clipboard
source_file_name=unsupported operand type(s) for +=: 'NoneType' and 'int'
Trying to parse a .nessus file. this file was created by a scan that has not had issues in previous. I have attempted to re run the scan change file name. Error message still occurs. [action=info] [source_file_name=ERROR Parsing [1/1] nessus files] [action=info] [source_file_name=unsupported operand type(s) for +=: 'NoneType' and 'int']
I get the same error with a .nessus file created using the latest Nessus version 10.3.0 (#80) LINUX
.
I get the same error message.
The file size is 631 Mb.
It is a .nessus file.
I am using the latest version v0.7.2 [2022.05.13] on Windows.
The error messages indicate that there is an issue with the code that attempts to concatenate a NoneType and an int in the log_emitter function. To fix this, you can modify the code as follows:
self.signal.emit(str(notification)) # Convert notification to a string before emitting it
By adding str(notification), you ensure that the notification is converted to a string before being emitted. This should resolve the error caused by concatenating a NoneType and an int.
Please note that the provided code snippet assumes that self.signal is a valid signal object capable of emitting the notification.