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/07/02 01:28:48 UTC

[whimsy] branch master updated: Don't fail if attr not present

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 fc47f18  Don't fail if attr not present
fc47f18 is described below

commit fc47f18aebb7b3eefc7e9466bdc65a6b927d1504
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jul 2 02:28:47 2017 +0100

    Don't fail if attr not present
---
 lib/whimsy/asf/person.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/person.rb b/lib/whimsy/asf/person.rb
index b021a8c..362516f 100644
--- a/lib/whimsy/asf/person.rb
+++ b/lib/whimsy/asf/person.rb
@@ -91,7 +91,7 @@ module ASF
     #    or fetched explicitly)
     def createTimestamp
       result = @@create_date[name] 
-      result ||= attrs['createTimestamp'][0]
+      result ||= attrs['createTimestamp'][0] rescue nil # in case not loaded
       result ||= ASF.search_one(base, "uid=#{name}", 'createTimestamp')[0][0]
       result
     end

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