1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-08 05:31:31 +00:00

Remove unneeded delete (var goes out of scope). #1834

This commit is contained in:
dmiller
2019-12-29 15:57:31 +00:00
parent 0403751060
commit fa7cdb2c9f

View File

@@ -512,8 +512,6 @@ class ScanInterface(HIGVBox):
parsed.profile_name = profile_name
parsed.nmap_command = command.command
del(profile)
def kill_all_scans(self):
"""Kill all running scans."""
for scan in self.jobs:
@@ -586,7 +584,8 @@ class ScanInterface(HIGVBox):
except Exception, e:
warn_dialog = HIGAlertDialog(
message_format=_("Error executing command"),
secondary_text=unicode(e, errors='replace'), type=gtk.MESSAGE_ERROR)
secondary_text=unicode(e, errors='replace'),
type=gtk.MESSAGE_ERROR)
warn_dialog.run()
warn_dialog.destroy()
return