Skip to content

Commit

Permalink
Handle no longer available Snowflake shared [sc-25949] (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
alyiwang authored Apr 29, 2024
1 parent 392eeeb commit acb31b3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
3 changes: 2 additions & 1 deletion metaphor/snowflake/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ def _fetch_tables(
try:
cursor.execute("USE " + database_name)
except ProgrammingError:
raise ValueError(f"Invalid or inaccessible database {database_name}")
logger.exception(f"Invalid or inaccessible database {database_name}")
return {}

cursor.execute(self.FETCH_TABLE_QUERY)

Expand Down
54 changes: 27 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metaphor-connectors"
version = "0.13.185"
version = "0.13.186"
license = "Apache-2.0"
description = "A collection of Python-based 'connectors' that extract metadata from various sources to ingest into the Metaphor app."
authors = ["Metaphor <[email protected]>"]
Expand Down

0 comments on commit acb31b3

Please sign in to comment.