From a9f687f02634d38d392c520dce46fe1cd9f2577e Mon Sep 17 00:00:00 2001 From: Douglas Reid Date: Thu, 19 Oct 2023 15:08:31 -0700 Subject: [PATCH] fix(repl): avoid printing bad block URLs for ephemeral blocks (#588) Co-authored-by: Douglas Reid --- src/steamship/utils/repl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steamship/utils/repl.py b/src/steamship/utils/repl.py index e608e1c2..6998af79 100644 --- a/src/steamship/utils/repl.py +++ b/src/steamship/utils/repl.py @@ -87,7 +87,7 @@ def print_object( output = block.url elif block.content_url: output = block.content_url - else: + elif block.id: block.set_public_data(True) output = f"{self.client.config.api_base}block/{block.id}/raw" if output: