lib/relaton_3gpp/data_fetcher.rb in relaton-3gpp-1.14.4 vs lib/relaton_3gpp/data_fetcher.rb in relaton-3gpp-1.14.5
- old
+ new
@@ -88,10 +88,10 @@
ftp.login
ftp.chdir "/Information/Databases/Spec_Status/"
d, t, _, file = ftp.list("*.zip").first.split
unless renewal
dt = DateTime.strptime("#{d} #{t}", "%m-%d-%y %I:%M%p")
- return if file == @current["file"] && dt == DateTime.parse(@current["date"])
+ return if file == @current["file"] && !@current["date"].empty? && dt == DateTime.parse(@current["date"])
end
ftp.getbinaryfile file
rescue Net::ReadTimeout => e
n += 1