whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 02/02: return nil if not found
Date Wed, 18 Jan 2017 15:51:22 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

commit a1de8708d2d7a7cf49683c6757664f07e5f5e2b5
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Jan 18 10:51:06 2017 -0500

    return nil if not found
---
 lib/whimsy/asf/ldap.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 0689886..3b6b650 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -702,7 +702,7 @@ module ASF
     end
 
     def dn
-      @dn ||= ASF.search_one(base, "cn=#{name}", 'dn').first.first
+      @dn ||= ASF.search_one(base, "cn=#{name}", 'dn').first.first rescue nil
     end
 
     def members

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

Mime
View raw message