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

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

Open
Datre3 opened this issue Aug 16, 2022 · 3 comments
Open

Comments

@Datre3
Copy link

Datre3 commented Aug 16, 2022

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

@mplattner
Copy link

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

@ordajh
Copy link

ordajh commented Jul 11, 2023

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.

@ordaj
Copy link

ordaj commented Jul 13, 2023

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.

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

4 participants