diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 470ea779c3..6c510f34b5 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -576,7 +576,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