nessus-file-analyzer icon indicating copy to clipboard operation
nessus-file-analyzer copied to clipboard

source_file_name=unsupported operand type(s) for +=: 'NoneType' and 'int'

Open Datre3 opened this issue 2 years ago • 3 comments

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']

Datre3 avatar Aug 16 '22 16:08 Datre3

I get the same error with a .nessus file created using the latest Nessus version 10.3.0 (#80) LINUX.

mplattner avatar Sep 29 '22 17:09 mplattner

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.

ordajh avatar Jul 11 '23 16:07 ordajh

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.

ordaj avatar Jul 13 '23 00:07 ordaj