Fixes r12634, should be a regex not a not-equal. Using unless instead of if to avoid negative matching.

git-svn-id: file:///home/svn/framework3/trunk@12648 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2011-05-17 17:37:04 +00:00
parent 5091a0fbfa
commit f542bdbb84
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class NmapXMLStreamParser
end
end
rescue NoMethodError => err
raise err if err.message != /NilClass/
raise err unless err.message =~ /NilClass/
end
end