mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +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.profile_name = profile_name
|
||||||
parsed.nmap_command = command.command
|
parsed.nmap_command = command.command
|
||||||
|
|
||||||
del(profile)
|
|
||||||
|
|
||||||
def kill_all_scans(self):
|
def kill_all_scans(self):
|
||||||
"""Kill all running scans."""
|
"""Kill all running scans."""
|
||||||
for scan in self.jobs:
|
for scan in self.jobs:
|
||||||
@@ -586,7 +584,8 @@ class ScanInterface(HIGVBox):
|
|||||||
except Exception, e:
|
except Exception, e:
|
||||||
warn_dialog = HIGAlertDialog(
|
warn_dialog = HIGAlertDialog(
|
||||||
message_format=_("Error executing command"),
|
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.run()
|
||||||
warn_dialog.destroy()
|
warn_dialog.destroy()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user