lib/whimsy/asf/agenda/attachments.rb in whimsy-asf-0.0.9 vs lib/whimsy/asf/agenda/attachments.rb in whimsy-asf-0.0.10

- old
+ new

@@ -30,15 +30,17 @@ attrs['report'].sub! /\n+\Z/, "\n" attrs.delete('report') if attrs['report'] == "\n" attrs['missing'] = true if attrs['report'].strip.empty? - begin - committee = ASF::Committee.find(attrs['title']) - attrs['chair_email'] = committee.chair.mail.first - attrs['mail_list'] = committee.mail_list - attrs.delete('mail_list') if attrs['mail_list'].include? ' ' - rescue + unless @quick + begin + committee = ASF::Committee.find(attrs['title']) + attrs['chair_email'] = committee.chair.mail.first + attrs['mail_list'] = committee.mail_list + attrs.delete('mail_list') if attrs['mail_list'].include? ' ' + rescue + end end if attrs['report'].to_s.include? "\uFFFD" attrs['warnings'] = ['UTF-8 encoding error'] end