summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-22 23:58:59 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-22 23:58:59 -0600
commit7eb208c4b183987bd426f1d854b7fba464777616 (patch)
tree7926b67e708ef38c543d26d4a1cc57f18705d049
parentfb441b2b1054de1ba0a99d01b9e1ea9700024aeb (diff)
downloadfreeipa-7eb208c4b183987bd426f1d854b7fba464777616.tar.gz
freeipa-7eb208c4b183987bd426f1d854b7fba464777616.tar.xz
freeipa-7eb208c4b183987bd426f1d854b7fba464777616.zip
Put a try/except around the 'from mod_python import apache' in mod_python_xmlrpc so epydoc can introspect it
-rw-r--r--ipa_server/mod_python_xmlrpc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipa_server/mod_python_xmlrpc.py b/ipa_server/mod_python_xmlrpc.py
index 18bedec1e..2a16e11d1 100644
--- a/ipa_server/mod_python_xmlrpc.py
+++ b/ipa_server/mod_python_xmlrpc.py
@@ -34,7 +34,10 @@ import time
import traceback
import pprint
from xmlrpclib import Marshaller,loads,dumps,Fault
-from mod_python import apache
+try:
+ from mod_python import apache
+except ImportError:
+ pass
import logging
import ldap