diff --git a/src/bentoml/_internal/cloud/deployment.py b/src/bentoml/_internal/cloud/deployment.py index c5c1cff0c90..3c81f209fbb 100644 --- a/src/bentoml/_internal/cloud/deployment.py +++ b/src/bentoml/_internal/cloud/deployment.py @@ -1,7 +1,6 @@ from __future__ import annotations import base64 -import binascii import contextlib import logging import time @@ -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...")