Skip to content

Commit 8bc8324

Browse files
committed
fix pylint
1 parent 99c0083 commit 8bc8324

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/sagemaker/feature_store/feature_group.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def wait(self, timeout=None):
241241
results = None
242242
try:
243243
results = self._async_result.get(timeout=timeout)
244-
except KeyboardInterrupt or NotImplementedError as i:
244+
except KeyboardInterrupt as i:
245245
# terminate workers abruptly on keyboard interrupt.
246246
self._processing_pool.terminate()
247247
self._processing_pool.close()
@@ -252,20 +252,18 @@ def wait(self, timeout=None):
252252
self._processing_pool.close()
253253
self._processing_pool.clear()
254254

255-
if results == None:
256-
return
257-
else:
255+
if results:
258256
self._failed_indices = [
259257
failed_index for failed_indices in results for failed_index in failed_indices
260258
]
261259

262-
if len(self._failed_indices) > 0:
263-
raise IngestionError(
264-
self._failed_indices,
265-
f"Failed to ingest some data into FeatureGroup {self.feature_group_name}",
266-
)
260+
if len(self._failed_indices) > 0:
261+
raise IngestionError(
262+
self._failed_indices,
263+
f"Failed to ingest some data into FeatureGroup {self.feature_group_name}",
264+
)
267265

268-
def _run_multi_process(self, data_frame: DataFrame, wait=True, timeout=None): # Not in use
266+
def _run_multi_process(self, data_frame: DataFrame, wait=True, timeout=None): # Not in use
269267
"""Start the ingestion process with the specified number of processes.
270268
271269
Args:
@@ -348,7 +346,7 @@ def run(self, data_frame: DataFrame, wait=True, timeout=None):
348346
timeout (Union[int, float]): ``concurrent.futures.TimeoutError`` will be raised
349347
if timeout is reached.
350348
"""
351-
#self._run_multi_process(data_frame=data_frame, wait=wait, timeout=timeout)
349+
# self._run_multi_process(data_frame=data_frame, wait=wait, timeout=timeout)
352350
self._run_multi_threaded(data_frame=data_frame, timeout=timeout)
353351

354352

0 commit comments

Comments
 (0)