Skip to content

Commit

Permalink
fix: remove defensive code
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Jun 19, 2024
1 parent cdc238b commit 71cba76
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/bentoml/_internal/cloud/deployment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import base64
import binascii
import contextlib
import logging
import time
Expand Down Expand Up @@ -532,12 +531,8 @@ def tail_image_builder_logs():
for piece in logs_tailer:
if stop_tail_event.is_set():
break
try:
decoded_bytes = base64.b64decode(piece)
except binascii.Error:
decoded_str = piece
else:
decoded_str = decoded_bytes.decode("utf-8")
decoded_bytes = base64.b64decode(piece)
decoded_str = decoded_bytes.decode("utf-8")
if is_first:
is_first = False
spinner.update("🚧 Image building...")
Expand Down

0 comments on commit 71cba76

Please sign in to comment.