You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/09/09 14:15:03 UTC

[whimsy] branch master updated: Don't fail app if item cannot be found

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 88f4bf5  Don't fail app if item cannot be found
88f4bf5 is described below

commit 88f4bf50804ce92e72e1b32dcd860989663ac862
Author: Sebb <se...@apache.org>
AuthorDate: Sat Sep 9 15:15:00 2017 +0100

    Don't fail app if item cannot be found
---
 www/roster/main.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/www/roster/main.rb b/www/roster/main.rb
index 7db2011..66e1598 100755
--- a/www/roster/main.rb
+++ b/www/roster/main.rb
@@ -86,7 +86,9 @@ get '/committer/index.json' do
 end
 
 get '/committee/:name.json' do |name|
-  _json Committee.serialize(name, env)
+  data = Committee.serialize(name, env)
+  pass unless data
+  _json data
 end
 
 get '/committee/:name' do |name|
@@ -97,7 +99,9 @@ get '/committee/:name' do |name|
 end
 
 get '/committer/:name.json' do |name|
-  _json Committer.serialize(name, env)
+  data =  Committer.serialize(name, env)
+  pass unless data
+  _json
 end
 
 # make __self__ an alias for one's own page

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