You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/04/09 15:55:36 UTC

[whimsy] branch master updated: treat 500 status as errors

This is an automated email from the ASF dual-hosted git repository.

rubys 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 bd98720  treat 500 status as errors
bd98720 is described below

commit bd98720b9e10e298fee51bc25016da924f56b316
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Mon Apr 9 11:55:11 2018 -0400

    treat 500 status as errors
---
 tools/site-scan.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 842fb64..f2d1da6 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -50,7 +50,7 @@ def parse(id, site, name)
 
   uri, response, status = $cache.get(site.to_s)
   $stderr.puts "#{id} #{uri} #{status}"
-  return data if response.respond_to? :code and response.code == '404'
+  return data if response.respond_to? :code and response.code =~ /^[45]/ 
   doc = Nokogiri::HTML(response)
   data[:uri] = uri.to_s
 

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.