Skip to content

Commit ba1c21a

Browse files
committed
Rescue settings_api
1 parent bbaa66e commit ba1c21a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openc3/lib/openc3/api/settings_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def update_news(manual: false, scope: $openc3_scope, token: $openc3_token)
100100
# json.unshift( { date: Time.now.utc.iso8601, title: "News at #{Time.now}", body: "The news feed has been updated at #{Time.now}." })
101101
# json.pop if json.length > 5
102102
# NewsModel.set(json.to_json)
103+
rescue Exception => e
104+
NewsModel.news_error("Error contacting OpenC3 news feed. #{e.message})")
103105
end
104106
end
105107
end

0 commit comments

Comments
 (0)