Skip to content

Commit

Permalink
remove duplicate error log
Browse files Browse the repository at this point in the history
  • Loading branch information
pritishpai committed Nov 19, 2024
1 parent 361dc29 commit 65970bb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/databricks/labs/ucx/hive_metastore/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,7 @@ def _all_databases(self) -> list[str]:
if "py4j.security.Py4JSecurityException" in str(err):
logger.error(
"Failed to list databases due to Py4JSecurityException. "
"Update or reinstall UCX to resolve this issue."
f"Error details: {err}",
"Update or reinstall UCX to resolve this issue.",
exc_info=True,
)
return []
Expand All @@ -562,8 +561,7 @@ def _list_tables(self, database: str) -> list[str]:
if "py4j.security.Py4JSecurityException" in str(err):
logger.error(
"Failed to list databases due to Py4JSecurityException. "
"Update or reinstall UCX to resolve this issue."
f"Error details: {err}",
"Update or reinstall UCX to resolve this issue.",
exc_info=True,
)
return []
Expand Down

0 comments on commit 65970bb

Please sign in to comment.