This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 751be50e Whassamatter?
751be50e is described below
commit 751be50ed8040364e883fa0c598986bd8496f8c6
Author: Sebb <[email protected]>
AuthorDate: Mon Nov 25 15:46:46 2024 +0000
Whassamatter?
---
lib/whimsy/sitestandards.rb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/whimsy/sitestandards.rb b/lib/whimsy/sitestandards.rb
index 34c55d5d..d6db69ba 100644
--- a/lib/whimsy/sitestandards.rb
+++ b/lib/whimsy/sitestandards.rb
@@ -195,8 +195,10 @@ module SiteStandards
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'