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-b9f4589650daunstable
parent
5091a0fbfa
commit
f542bdbb84
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue