From 86018003aa1c8d09be098823678407404245daf9 Mon Sep 17 00:00:00 2001 From: Saskia Hiltemann Date: Thu, 16 Jan 2025 11:11:59 +0100 Subject: [PATCH] handle case of empty contributors field --- bin/google-form-event.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/google-form-event.rb b/bin/google-form-event.rb index 53dcfe518cc69f..75478f5fbf96fa 100644 --- a/bin/google-form-event.rb +++ b/bin/google-form-event.rb @@ -53,7 +53,7 @@ 'description' => row['Description of your event'], 'external' => row['Link to event page'], 'contributions' => { - 'organisers' => row['Organizers already in the GTN CONTRIBUTORS file'].split(',').map(&:strip) + 'organisers' => row['Organizers already in the GTN CONTRIBUTORS file']&.split(',')&.map(&:strip) }, 'location' => { 'name' => row['Location of the event']