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/08/09 00:36:36 UTC
[whimsy] branch master updated: guard against bad data
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 ef378d9 guard against bad data
ef378d9 is described below
commit ef378d93ff1e69d457a812c273bf9c92573f8383
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Aug 8 20:36:24 2017 -0400
guard against bad data
---
tools/site-scan.rb | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 62c26aa..f580179 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -73,19 +73,35 @@ def parse(id, site, name)
$stderr.puts a_text if $verbose
if a_text =~ /licenses?/ and a_href.include? 'apache.org'
- data[:license] = uri + a_href
+ begin
+ data[:license] = uri + a_href
+ rescue
+ data[:license] = a_href
+ end
end
if a_text == 'thanks'
- data[:thanks] = uri + a_href
+ begin
+ data[:thanks] = uri + a_href
+ rescue
+ data[:thanks] = a_href
+ end
end
if a_text == 'security'
- data[:security] = uri + a_href
+ begin
+ data[:security] = uri + a_href
+ rescue
+ data[:security] = a_href
+ end
end
if ['sponsorship', 'donate', 'sponsor apache','sponsoring apache'].include? a_text
- data[:sponsorship] = uri + a_href
+ begin
+ data[:sponsorship] = uri + a_href
+ rescue
+ data[:sponsorship] = a_href
+ end
end
end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].