Skip to content

Commit 3f8194b

Browse files
authored
Merge pull request #650 from basetenlabs/justinyi/bt-8648-improve-output-of-truss-watch
add more descriptive error
2 parents 59de884 + 2848ed1 commit 3f8194b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

truss/remote/baseten/remote.py

+7
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@ def patch(
183183
dev_version = get_dev_version_info(self._api, model_name) # type: ignore
184184
truss_hash = dev_version.get("truss_hash", None)
185185
truss_signature = dev_version.get("truss_signature", None)
186+
if not (truss_hash and truss_signature):
187+
logger.error(
188+
"""Failed to inspect a running remote deployment to watch for changes.
189+
Ensure that there exists a running remote deployment before attempting to watch for changes
190+
"""
191+
)
192+
return
186193
LocalConfigHandler.add_signature(truss_hash, truss_signature)
187194
try:
188195
patch_request = truss_handle.calc_patch(truss_hash)

0 commit comments

Comments
 (0)