summaryrefslogtreecommitdiffstats
path: root/ipapython/nsslib.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython/nsslib.py')
-rw-r--r--ipapython/nsslib.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipapython/nsslib.py b/ipapython/nsslib.py
index 129f1a0c5..fad65a373 100644
--- a/ipapython/nsslib.py
+++ b/ipapython/nsslib.py
@@ -126,7 +126,11 @@ class NSSConnection(httplib.HTTPConnection):
if nss.nss_is_initialized():
# close any open NSS database and use the new one
ssl.clear_session_cache()
- nss.nss_shutdown()
+ try:
+ nss.nss_shutdown()
+ except NSPRError, e:
+ # FIXME: errors shouldn't be raised here
+ logging.debug('nss_shutdown: %s', str(e))
nss.nss_init(dbdir)
ssl.set_domestic_policy()
nss.set_password_callback(self.password_callback)