Skip to content

Commit

Permalink
Whassamatter?
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Nov 25, 2024
1 parent 47f60e1 commit 751be50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/whimsy/sitestandards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ def get_sites(tlp = true)
crawl_time = File.mtime(local_copy).httpdate # show time in same format as last-mod
begin
sites = JSON.parse(File.read(local_copy))
rescue
sites = {} # TODO temporary fix
rescue StandardError => e
require 'wunderbar'
Wunderbar.warn "Failed to read #{local_copy}: #{e.inspect}"
sites = {} # TODO temporary fix
end
else
require 'wunderbar'
Expand Down

0 comments on commit 751be50

Please sign in to comment.