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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user