Exception handing in stats.xls and more debug info
This commit is contained in:
parent
2314877f03
commit
cca47a6d31
@ -436,7 +436,8 @@ class ConferencesController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
@registrations.each do |r|
|
@registrations.each do |r|
|
||||||
if r.is_attending
|
if r && r.is_attending
|
||||||
|
begin
|
||||||
@total_registrations += 1
|
@total_registrations += 1
|
||||||
|
|
||||||
@donation_count += 1 if r.registration_fees_paid
|
@donation_count += 1 if r.registration_fees_paid
|
||||||
@ -484,6 +485,10 @@ class ConferencesController < ApplicationController
|
|||||||
:other => r.other || ''
|
:other => r.other || ''
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
rescue
|
||||||
|
logger.info "Error adding row to stats.xls"
|
||||||
|
logger.info "\t#{r ? r.to_yaml.to_s : 'nil'}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user