Update for style requirements.

GSoC/Meterpreter_Web_Console
Green-m 2018-08-15 22:24:20 -04:00
parent 028799299c
commit 1475f205d4
No known key found for this signature in database
GPG Key ID: 7A4A0E684B5D6747
1 changed files with 5 additions and 1 deletions

View File

@ -768,7 +768,11 @@ class ReadableText
# Get the persistent job info.
if verbose
persist_list = JSON.parse(File.read(Msf::Config.persist_file)) rescue []
begin
persist_list = JSON.parse(File.read(Msf::Config.persist_file))
rescue Errno::ENOENT, JSON::ParserError
persist_list = []
end
end
# jobs are stored as a hash with the keys being a numeric String job_id.