diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 2d51d24b58..2786d05f79 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -578,7 +578,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): cursor.execute("SELECT 1 FROM DUAL WHERE DUMMY %s" % self._standard_operators['contains'], ['X']) - except utils.DatabaseError: + except DatabaseError: self.operators = self._likec_operators else: self.operators = self._standard_operators