diff --git a/rj_escritorio/data_catalog/tasks.html b/rj_escritorio/data_catalog/tasks.html index 53f272d03..8b8319aae 100644 --- a/rj_escritorio/data_catalog/tasks.html +++ b/rj_escritorio/data_catalog/tasks.html @@ -34,7 +34,7 @@

Module pipelines.rj_escritorio.data_catalog.tasks """ from typing import List -from google.api_core.exceptions import NotFound +from google.api_core.exceptions import BadRequest, NotFound from google.cloud import bigquery from googleapiclient import discovery import gspread @@ -149,6 +149,10 @@

Module pipelines.rj_escritorio.data_catalog.tasks "private": not project_id == "datario", } tables.append(table_info) + except BadRequest: + # This will happen if BigQuery API is not enabled for this project. Just return an empty + # list + return tables except NotFound: # This will happen if BigQuery API is not enabled for this project. Just return an empty # list @@ -431,6 +435,10 @@

Returns

"private": not project_id == "datario", } tables.append(table_info) + except BadRequest: + # This will happen if BigQuery API is not enabled for this project. Just return an empty + # list + return tables except NotFound: # This will happen if BigQuery API is not enabled for this project. Just return an empty # list