diff --git a/lib/whimsy/sitestandards.rb b/lib/whimsy/sitestandards.rb index 34c55d5d99..d6db69ba03 100644 --- a/lib/whimsy/sitestandards.rb +++ b/lib/whimsy/sitestandards.rb @@ -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'