diff options
Diffstat (limited to 'django/db/backends/base/features.py')
| -rw-r--r-- | django/db/backends/base/features.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py index 3a89cc0900..3706e12db1 100644 --- a/django/db/backends/base/features.py +++ b/django/db/backends/base/features.py @@ -1,5 +1,5 @@ from django.db.models.aggregates import StdDev -from django.db.utils import ProgrammingError +from django.db.utils import NotSupportedError, ProgrammingError from django.utils.functional import cached_property @@ -269,9 +269,9 @@ class BaseDatabaseFeatures: """Confirm support for STDDEV and related stats functions.""" try: self.connection.ops.check_expression_support(StdDev(1)) - return True - except NotImplementedError: + except NotSupportedError: return False + return True def introspected_boolean_field_type(self, field=None): """ |
