From ea1223338885933178620f6eadeebda7c65761bf Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Mon, 4 Nov 2024 00:32:27 -0800 Subject: [PATCH] chore: remove duplicated code --- sky/serve/core.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sky/serve/core.py b/sky/serve/core.py index ea8f380a2e7..e15e5ff00e1 100644 --- a/sky/serve/core.py +++ b/sky/serve/core.py @@ -687,10 +687,6 @@ def tail_logs( """ if isinstance(target, str): target = serve_utils.ServiceComponent(target) - if not isinstance(target, serve_utils.ServiceComponent): - with ux_utils.print_exception_no_traceback(): - raise ValueError(f'`target` must be a string or ' - f'sky.serve.ServiceComponent, got {type(target)}.') if target == serve_utils.ServiceComponent.REPLICA: if replica_id is None: with ux_utils.print_exception_no_traceback():