Skip to content

Commit

Permalink
Gracefully handle NotSupportedError during schema introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhodge authored Jan 31, 2025
1 parent 910cb71 commit 6aeb988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explorer/schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.core.cache import cache
from django.db import ProgrammingError
from django.db import NotSupportedError, ProgrammingError

from explorer.app_settings import (
EXPLORER_SCHEMA_EXCLUDE_TABLE_PREFIXES,
Expand Down Expand Up @@ -108,7 +108,7 @@ def build_schema_info(db_connection):
cursor, table_name
)
# Issue 675. A connection maybe not have permissions to access some tables in the DB.
except ProgrammingError:
except (NotSupportedError, ProgrammingError):
continue

td = []
Expand Down

0 comments on commit 6aeb988

Please sign in to comment.