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
Autosploit version: 3.1.1
OS information: Linux-4.19.0-kali1-amd64-x86_64-with-Kali-kali-rolling-kali-rolling
Running context: autosploit.py
Error mesage: object of type 'NoneType' has no len()
Error traceback:
Traceback (most recent call):
File "/root/AutoSploit/autosploit/main.py", line 116, in main
terminal.terminal_main_display(loaded_tokens)
File "/root/AutoSploit/lib/term/terminal.py", line 550, in terminal_main_display
if len(choice_data_list) < 3:
TypeError: object of type 'NoneType' has no len()
I was looking whether it would return a NoneType on an array or on a dictionary when you prefix the var with len but i couldn't replicate it on my end either.
That's why i'm suggesting catching the type error and just moving along with a pass statement. Or a message letting the user know the operation wasn't successful.
Activity
NullArray commentedon Apr 19, 2019
@ DevTeam
Maybe add a
try:except TypeError:block here as well to handle theNoneTypeissue.Ekultek commentedon Apr 19, 2019
I have no idea what’s causing this
NullArray commentedon Apr 20, 2019
I was looking whether it would return a
NoneTypeon an array or on a dictionary when you prefix the var withlenbut i couldn't replicate it on my end either.That's why i'm suggesting catching the type error and just moving along with a
passstatement. Or a message letting the user know the operation wasn't successful.Ekultek commentedon Apr 22, 2019
fixed here #1054