hackertarget / nmap-did-what

Nmap Dashboard Mini Project
GNU General Public License v2.0
515 stars 95 forks source link

DeprecationWarning on python script #2

Closed t-hey closed 3 months ago

t-hey commented 4 months ago

When running the python script I get the following error.

nmap-to-sqlite.py:104: DeprecationWarning: Testing an element's truth value will raise an exception in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
  if extraports:

Changing the code to if len(extraports): on line 104, works for me.

peter-hackertarget commented 3 months ago

Thanks, added fix