Skip to content

Commit d329c6f

Browse files
addressed review comments
1 parent d27e038 commit d329c6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ads/aqua/finetuning/finetuning.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import json
66
import os
77
import time
8+
import traceback
89
from typing import Dict
910

1011
from oci.data_science.models import (
@@ -434,16 +435,16 @@ def create(
434435

435436
if create_fine_tuning_details.watch_logs:
436437
logger.info(
437-
f"Watching fine-tuning job run logs for {ft_job_run.id}. Press Ctrl+C stop watching logs.\n"
438+
f"Watching fine-tuning job run logs for {ft_job_run.id}. Press Ctrl+C to stop watching logs.\n"
438439
)
439440
try:
440441
ft_job_run.watch()
441442
except KeyboardInterrupt:
442443
logger.info(f"\nStopped watching logs for {ft_job_run.id}.\n")
443444
time.sleep(1)
444-
except Exception as ex:
445+
except Exception:
445446
logger.debug(
446-
f"Something unexpected occurred while watching logs.\n{str(ex)}"
447+
f"Something unexpected occurred while watching logs.\n{traceback.format_exc()}"
447448
)
448449

449450
return AquaFineTuningSummary(

0 commit comments

Comments
 (0)