From b47d946195d208cc9d3c2d04799db81bf00f1395 Mon Sep 17 00:00:00 2001 From: jah Date: Tue, 22 May 2012 18:14:48 +0000 Subject: [PATCH] Fixed KeyError: 'osmatches', reported separately by Thomas Neumayer and Jan Reister. --- zenmap/zenmapCore/SearchResult.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenmap/zenmapCore/SearchResult.py b/zenmap/zenmapCore/SearchResult.py index 7ad032080..75c023f77 100644 --- a/zenmap/zenmapCore/SearchResult.py +++ b/zenmap/zenmapCore/SearchResult.py @@ -152,7 +152,7 @@ class HostSearch(object): for osmatch in osmatches: os_str += osmatch['name'].lower() - for osclass in osmatch['osmatches']: + for osclass in osmatch['osclasses']: os_str += osclass['vendor'].lower() + " " +\ osclass['osfamily'].lower() + " " +\ osclass['type'].lower()