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: Fix missing variable errors
Date Wed, 01 Apr 2020 11:52:35 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 58c4084  Fix missing variable errors
58c4084 is described below

commit 58c408450784254d991052e9c244041a8e8265c8
Author: Sebb <sebb@apache.org>
AuthorDate: Wed Apr 1 12:52:27 2020 +0100

    Fix missing variable errors
---
 www/members/meeting.cgi | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/www/members/meeting.cgi b/www/members/meeting.cgi
index c5adec1..9580c9d 100755
--- a/www/members/meeting.cgi
+++ b/www/members/meeting.cgi
@@ -30,6 +30,7 @@ end
 
 # Output action links for meeting records, depending on if current or past
 def emit_meeting(cur_mtg_dir, svn_mtg_dir, dt)
+  num_members, quorum_need, num_proxies, attend_irc = MeetingUtil.calculate_quorum(cur_mtg_dir)
   _div id: "meeting-#{dt.year}"
   _whimsy_panel("All Meeting Details for #{dt.strftime(DTFORMAT)}", style: 'panel-info')
do 
     if Date.today > dt
@@ -41,8 +42,12 @@ def emit_meeting(cur_mtg_dir, svn_mtg_dir, dt)
           _li "#{num_proxies} proxy assignments available for the meeting,"
           _li "And hoped that at least #{attend_irc} would attend the start of meeting."
         end
-        attendees = File.readlines(File.join(cur_mtg_dir, 'attend'))
-        _ "By the end of the meeting, we had a total of #{attendees.count} Members participating
(either via attending IRC, sending a proxy, or voting via email)"
+        begin
+            attendees = File.readlines(File.join(cur_mtg_dir, 'attend'))
+            _ "By the end of the meeting, we had a total of #{attendees.count} Members participating
(either via attending IRC, sending a proxy, or voting via email)"
+        rescue
+            _ '(Cannot access attendance record)'
+        end
       end
       _p "These are historical links to the past meeting's record."
     else


Mime
View raw message