summaryrefslogtreecommitdiffstats
path: root/base/common/python
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/python')
-rw-r--r--base/common/python/pki/crypto.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/common/python/pki/crypto.py b/base/common/python/pki/crypto.py
index 147e65447..6a99c13fe 100644
--- a/base/common/python/pki/crypto.py
+++ b/base/common/python/pki/crypto.py
@@ -22,7 +22,6 @@
Module containing crypto classes.
"""
import abc
-import exceptions
import nss.nss as nss
import os
import shutil
@@ -106,7 +105,7 @@ class NSSCryptoProvider(CryptoProvider):
""" Create an NSS database """
if os.path.exists(db_dir):
if not over_write:
- raise exceptions.IOError("Directory already exists.")
+ raise IOError("Directory already exists.")
if os.path.isdir(db_dir):
shutil.rmtree(db_dir)
else: