This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 22a8e869 Check for missing file
22a8e869 is described below

commit 22a8e869f2ff52a6312c1e03d36305f714c121cb
Author: Sebb <[email protected]>
AuthorDate: Mon Feb 17 23:36:36 2025 +0000

    Check for missing file
---
 www/brand/list.cgi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/brand/list.cgi b/www/brand/list.cgi
index 65d4ee76..1d18b139 100755
--- a/www/brand/list.cgi
+++ b/www/brand/list.cgi
@@ -32,8 +32,13 @@ MAP_PMC_REG = {
 # Transform docket spreadsheet into structured JSON
 def csv2json
   brand_dir = ASF::SVN['brandlist']
-  csv = CSV.read("#{brand_dir}/docket.csv", headers:true)
   docket = {}
+  begin
+    csv = CSV.read("#{brand_dir}/docket.csv", headers:true)
+  rescue Exception => e
+    Wunderbar.warn e.to_s
+    return docket
+  end
   csv.each do |r|
     r << ['pmc', r[MNAM].downcase.sub('.org','').sub(' & design','')]
     key = r['pmc'].to_sym

Reply via email to