Qualify the exception namespace
git-svn-id: file:///home/svn/framework3/trunk@12475 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
9c619c3a40
commit
321e5bd292
|
@ -2082,7 +2082,9 @@ class DBManager
|
|||
@import_filedata[:zip_wspace] = @import_filedata[:zip_xml].to_s.match(/^(.*)_[0-9]+\.xml$/)[1]
|
||||
@import_filedata[:type] = "Metasploit ZIP Report"
|
||||
return :msf_zip
|
||||
rescue
|
||||
rescue ::Interrupt
|
||||
raise $!
|
||||
rescue ::Exception
|
||||
raise DBImportError.new("The zip file provided is not a Metasploit ZIP report")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue