Skip to content

Commit 72aacf8

Browse files
committed
Condense line to < 120
1 parent fd20c3f commit 72aacf8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sagemaker/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,10 @@ def _create_or_update_code_dir(
625625
if os.path.exists(os.path.join(code_dir, inference_script)):
626626
pass
627627
else:
628+
docs_url = (
629+
"https://sagemaker.readthedocs.io/en/stable/"
630+
"frameworks/pytorch/using_pytorch.html#bring-your-own-model"
631+
)
628632
raise FileNotFoundError(
629633
f"Could not find '{inference_script}'. Common solutions:\n"
630634
"1. Make sure inference.py exists in the code/ directory\n"
@@ -640,7 +644,7 @@ def _create_or_update_code_dir(
640644
" ├── inference.py\n"
641645
" └── requirements.txt"
642646
"\nFor more details, see the documentation:\n"
643-
"https://sagemaker.readthedocs.io/en/stable/frameworks/pytorch/using_pytorch.html#bring-your-own-model"
647+
f"{docs_url}"
644648
)
645649

646650
for dependency in dependencies:

0 commit comments

Comments
 (0)