summaryrefslogtreecommitdiff
path: root/oslo_db/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/exception.py')
-rw-r--r--oslo_db/exception.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/oslo_db/exception.py b/oslo_db/exception.py
index ee6bbb2..2db34ef 100644
--- a/oslo_db/exception.py
+++ b/oslo_db/exception.py
@@ -45,7 +45,6 @@ database errors.
from debtcollector import moves
from oslo_utils.excutils import CausedByException
-import six
from oslo_db._i18n import _
from oslo_db import warning
@@ -61,7 +60,7 @@ class DBError(CausedByException):
def __init__(self, inner_exception=None, cause=None):
self.inner_exception = inner_exception
- super(DBError, self).__init__(six.text_type(inner_exception), cause)
+ super(DBError, self).__init__(str(inner_exception), cause)
class DBDuplicateEntry(DBError):