Skip to content

Commit

Permalink
Merge branch 'datahub-project:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored May 9, 2024
2 parents 14ce5de + 3755a1e commit bc89773
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def _parse_into_dbt_node(self, node: Dict) -> DBTNode:
max_loaded_at = None

columns = []
if "columns" in node:
if "columns" in node and node["columns"] is not None:
# columns will be empty for ephemeral models
columns = [
self._parse_into_dbt_column(column)
Expand Down
8 changes: 4 additions & 4 deletions metadata-ingestion/src/datahub/ingestion/source/tableau.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import tableauserverclient as TSC
from pydantic import root_validator, validator
from pydantic.fields import Field
from requests.adapters import ConnectionError, HTTPAdapter
from requests.adapters import HTTPAdapter
from tableauserverclient import (
PersonalAccessTokenAuth,
Server,
Expand Down Expand Up @@ -572,11 +572,11 @@ def close(self) -> None:
try:
if self.server is not None:
self.server.auth.sign_out()
except ConnectionError as err:
except Exception as ex:
logger.warning(
"During graceful closing of Tableau source a sign-out call was tried but ended up with"
" a ConnectionError (%s). Continuing closing of the source",
err,
" an Exception (%s). Continuing closing of the source",
ex,
)
self.server = None
super().close()
Expand Down

0 comments on commit bc89773

Please sign in to comment.