File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 4242from sagemaker .sklearn import SKLearn
4343from sagemaker .tensorflow import TensorFlow
4444from sagemaker .utils import sagemaker_timestamp
45- from sagemaker .workflow import airflow as sm_airflow
4645from sagemaker .xgboost import XGBoost
4746from tests .integ import datasets , DATA_DIR
4847from tests .integ .record_set import prepare_record_set_from_local_files
5453 seconds_to_sleep = 6 ,
5554):
5655 try :
57- from airflow import utils
56+ import sagemaker .workflow .airflow as sm_airflow
57+ import airflow .utils as utils
5858 from airflow import DAG
5959 from airflow .providers .amazon .aws .operators .sagemaker import SageMakerTrainingOperator
6060 from airflow .providers .amazon .aws .operators .sagemaker_transform import (
6464 break
6565 except ParsingError :
6666 pass
67+ except ValueError as ve :
68+ if "Unable to configure formatter" in str (ve ):
69+ print (f"Received: { ve } " )
70+ else :
71+ raise ve
6772
6873PYTORCH_MNIST_DIR = os .path .join (DATA_DIR , "pytorch_mnist" )
6974PYTORCH_MNIST_SCRIPT = os .path .join (PYTORCH_MNIST_DIR , "mnist.py" )
You can’t perform that action at this time.
0 commit comments