Skip to content

Commit 672ba6a

Browse files
committed
format
1 parent b5da319 commit 672ba6a

File tree

1 file changed

+6
-2
lines changed
  • metadata-ingestion/src/datahub/ingestion/source

1 file changed

+6
-2
lines changed

metadata-ingestion/src/datahub/ingestion/source/superset.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ class SupersetConfig(
189189
provider: str = Field(default="db", description="Superset provider.")
190190
options: Dict = Field(default={}, description="")
191191

192-
timeout: int = Field(default=10, description="Timeout of single API call to superset.")
192+
timeout: int = Field(
193+
default=10, description="Timeout of single API call to superset."
194+
)
193195

194196
# TODO: Check and remove this if no longer needed.
195197
# Config database_alias is removed from sql sources.
@@ -302,7 +304,9 @@ def login(self) -> requests.Session:
302304
if test_response.status_code == 200:
303305
# throw an error and terminate ingestion,
304306
# cannot proceed without access token
305-
logger.error(f"Failed to log in to Superset with status: {test_response.status_code}")
307+
logger.error(
308+
f"Failed to log in to Superset with status: {test_response.status_code}"
309+
)
306310
return requests_session
307311

308312
def paginate_entity_api_results(self, entity_type, page_size=100):

0 commit comments

Comments
 (0)