From e202716d363f7998090d0fb1c375d4e6c6054075 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 28 Dec 2023 23:19:36 -0800 Subject: Better handle nil ref_times in check_mirrors_status This happens every once in a while and results in a cron job failure e-mail. --- modules/mga-mirrors/files/check_mirrors_status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status index 884857f3..82a2f085 100755 --- a/modules/mga-mirrors/files/check_mirrors_status +++ b/modules/mga-mirrors/files/check_mirrors_status @@ -176,7 +176,7 @@ th {background-color:#EEEEEE;} puts "" puts "Reference" puts " " - puts " #{ref_times['base'].strftime("%F %R")}" + puts " #{!ref_times['base'].nil? ? ref_times['base'].strftime("%F %R") : "?"}" archs_per_distro.each{|d, archs| puts " " archs.each{|a| -- cgit v1.2.1