Handle invalid dates

git-svn-id: file:///home/svn/framework3/trunk@10888 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-11-03 15:31:28 +00:00
parent b97cbff5af
commit e6da9729c0
1 changed files with 1 additions and 2 deletions

View File

@ -305,8 +305,7 @@ class Module
# Returns the disclosure date, if known.
#
def disclosure_date
date_str = module_info['DisclosureDate']
date_str ? Date.parse(date_str) : nil
date_str = Date.parse(module_info['DisclosureDate'].to_s) rescue nil
end
#