Changeset 4470

Show
Ignore:
Timestamp:
04/06/09 16:46:37 (4 years ago)
Author:
nopper
Message:

This close the #278.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/umit/gui/DiffCompare.py

    r4338 r4470  
    9999 
    100100    def show_scan (self, widget): 
    101         self.txt_scan_result.get_buffer().\ 
    102              set_text(self.normalize_output(\ 
    103                  self.scan_dict[widget.child.get_text()].nmap_output)) 
     101        try: 
     102            self.txt_scan_result.get_buffer().\ 
     103                 set_text(self.normalize_output(\ 
     104                     self.scan_dict[widget.child.get_text()].nmap_output)) 
     105        except KeyError: 
     106            # Avoid to raise an error if the user writes within 
     107            # the entry and the scan doesn't exits 
     108            pass 
    104109 
    105110    def normalize_output(self, output):