Handle invalid dates
git-svn-id: file:///home/svn/framework3/trunk@10888 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
b97cbff5af
commit
e6da9729c0
|
@ -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
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue