Skip to content

Commit

Permalink
[dbt-labs#104] Skip the forbidden exception in `list_relations_withou…
Browse files Browse the repository at this point in the history
…t_caching`
  • Loading branch information
yu-iskw committed Jan 25, 2022
1 parent afd49d9 commit 049b413
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbt/adapters/bigquery/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ def list_relations_without_caching(
return [self._bq_table_to_relation(table) for table in all_tables]
except google.api_core.exceptions.NotFound:
return []
except google.api_core.exceptions.Forbidden as exc:
logger.debug('list_relations_without_caching error: {}'.format(str(exc)))
return []

def get_relation(
self, database: str, schema: str, identifier: str
Expand Down

0 comments on commit 049b413

Please sign in to comment.