We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aabd439 commit 649ae30Copy full SHA for 649ae30
src/fastapi_cloud_cli/utils/api.py
@@ -1,3 +1,4 @@
1
+import json
2
import logging
3
import time
4
from contextlib import contextmanager
@@ -189,6 +190,6 @@ def stream_build_logs(
189
190
def _parse_log_line(self, line: str) -> Optional[BuildLogLine]:
191
try:
192
return BuildLogAdapter.validate_json(line)
- except ValidationError as e:
193
+ except (ValidationError, json.JSONDecodeError) as e:
194
logger.debug("Skipping malformed log: %s (error: %s)", line[:100], e)
195
return None
0 commit comments