Skip to content

Commit

Permalink
Merge pull request #1024 from sparc-request/jm-production-format-error
Browse files Browse the repository at this point in the history
JM/KG - (Production Bug): An Icalendar::Values::Date::FormatError occurr…
  • Loading branch information
Stuart-Johnson committed Jul 26, 2017
2 parents 4c83852 + 3aca4d2 commit be93dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/service_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def setup_catalog_calendar
@events.reverse!

Alert.where(alert_type: ALERT_TYPES['google_calendar'], status: ALERT_STATUSES['active']).update_all(status: ALERT_STATUSES['clear'])
rescue Exception => e
rescue Exception, ArgumentError => e
active_alert = Alert.where(alert_type: ALERT_TYPES['google_calendar'], status: ALERT_STATUSES['active']).first_or_initialize
if Rails.env == 'production' && active_alert.new_record?
active_alert.save
Expand Down

0 comments on commit be93dbb

Please sign in to comment.