File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2499,7 +2499,9 @@ def get_custom_metadata_artifact(
2499
2499
artifact_file_path = os .path .join (target_dir , f"{ metadata_key_name } " )
2500
2500
2501
2501
if not override and is_path_exists (artifact_file_path ):
2502
- raise FileExistsError (f"File already exists: { artifact_file_path } " )
2502
+ raise FileExistsError (
2503
+ f"File already exists: { artifact_file_path } . Please use boolean override parameter to override the file content."
2504
+ )
2503
2505
2504
2506
with open (artifact_file_path , "wb" ) as _file :
2505
2507
_file .write (file_content )
@@ -2538,7 +2540,9 @@ def get_defined_metadata_artifact(
2538
2540
artifact_file_path = os .path .join (target_dir , f"{ metadata_key_name } " )
2539
2541
2540
2542
if not override and is_path_exists (artifact_file_path ):
2541
- raise FileExistsError (f"File already exists: { artifact_file_path } " )
2543
+ raise FileExistsError (
2544
+ f"File already exists: { artifact_file_path } . Please use boolean override parameter to override the file content."
2545
+ )
2542
2546
2543
2547
with open (artifact_file_path , "wb" ) as _file :
2544
2548
_file .write (file_content )
You can’t perform that action at this time.
0 commit comments