Skip to content

Commit 8a725eb

Browse files
committed
fix proxy decode bug
Signed-off-by: CHEN <[email protected]>
1 parent 2950e99 commit 8a725eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/disaggregated_prefill_v1/load_balance_proxy_layerwise_server_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ async def generate_stream():
558558
released_kv = True
559559
try:
560560
chunk_str = chunk.decode("utf-8").strip()
561-
except Exception:
561+
except UnicodeDecodeError:
562562
logger.debug(
563563
f"Skipping chunk: {chunk}")
564564
yield chunk

examples/disaggregated_prefill_v1/load_balance_proxy_server_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ async def generate_stream():
541541
released_kv = True
542542
try:
543543
chunk_str = chunk.decode("utf-8").strip()
544-
except Exception:
544+
except UnicodeDecodeError:
545545
logger.debug(
546546
f"Skipping chunk: {chunk}")
547547
yield chunk

0 commit comments

Comments
 (0)