whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Avoid crash
Date Sat, 30 Nov 2019 21:43:21 GMT
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 c49eb74  Avoid crash
c49eb74 is described below

commit c49eb7434bde4510eb35140a186e4dfe20e2fa23
Author: Sebb <sebb@apache.org>
AuthorDate: Sat Nov 30 21:42:43 2019 +0000

    Avoid crash
---
 www/secretary/icla-parse.cgi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/secretary/icla-parse.cgi b/www/secretary/icla-parse.cgi
index 98878c8..be17385 100755
--- a/www/secretary/icla-parse.cgi
+++ b/www/secretary/icla-parse.cgi
@@ -36,7 +36,7 @@ begin
   puts ""
   parsed[:_meta].sort_by{|k,v| k.to_s }.each do |k,v|
     if k == 'info'
-      v.sort_by{|k,v| k.to_s }.each do |k,v|
+      (v ||{}).sort_by{|k,v| k.to_s }.each do |k,v|
         puts "%-20s %-15s %s" % ['info',k,v]
       end
     elsif k != 'metadata' # can be long
@@ -50,7 +50,6 @@ begin
     puts metadata
   end
   
-  
 rescue Exception => e
   p e
 end


Mime
View raw message