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 2017/09/25 05:36:17 UTC

[whimsy] branch master updated: handle strings too

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 1a08120  handle strings too
1a08120 is described below

commit 1a081206abc4751b7b2f12cc695f6f4c6fb70aa0
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Mon Sep 25 01:36:07 2017 -0400

    handle strings too
---
 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 b86e2f1..61faaff 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.code == '404'
+  return data if response.respond_to? :code and response.code == '404'
   doc = Nokogiri::HTML(response)
   data[:uri] = uri.to_s
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].