Permalink
Browse files

more hailmarying

  • Loading branch information...
1 parent 1751739 commit 01a3f9d3bbc1f068593b9620343ccef7bc373375 @mcdonc mcdonc committed Mar 30, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 pyramid_ldap/__init__.py
View
10 pyramid_ldap/__init__.py
@@ -1,4 +1,12 @@
-import ldap
+try:
+ import ldap
+except ImportError: # pragma: no cover
+ # this is for benefit of being able to build the docs on rtd.org
+ class ldap(object):
+ LDAPError = Exception
+ SCOPE_ONELEVEL = None
+ SCOPE_SUBTREE = None
+
import logging
import pprint
import time

0 comments on commit 01a3f9d

Please sign in to comment.