mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
This commit is contained in:
parent
99de2621cd
commit
7760fdf7b4
2 changed files with 13 additions and 1 deletions
|
|
@ -535,7 +535,16 @@ class ScanInterface(HIGVBox):
|
|||
"""Run the given Nmap command. Add it to the list of running scans.
|
||||
Schedule a timer to refresh the output and check the scan for
|
||||
completion."""
|
||||
command_execution = NmapCommand(command)
|
||||
try:
|
||||
command_execution = NmapCommand(command)
|
||||
except IOError, e:
|
||||
warn_dialog = HIGAlertDialog(
|
||||
message_format=_("Error building command"),
|
||||
secondary_text=_("Error message: %s") % str(e),
|
||||
type=gtk.MESSAGE_ERROR)
|
||||
warn_dialog.run()
|
||||
warn_dialog.destroy()
|
||||
return
|
||||
command_execution.profile = profile
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue