Skip to content

Commit

Permalink
JM - (Production Bug): An Icalendar::Values::Date::FormatError occurr…
Browse files Browse the repository at this point in the history
…ed in service_requests#catalog [#148701413] https://www.pivotaltracker.com/story/show/148701413
  • Loading branch information
jwiel86 committed Jul 25, 2017
1 parent e179929 commit 3aca4d2
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 3aca4d2

Please sign in to comment.