From 98983b53698db277fda0eaaac90e1b61a60c6197 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Mon, 13 Apr 2026 15:00:28 -0300 Subject: [PATCH] feat: unmask exceptions on blob retrieve error These have not been encountered in at least three months, likely longer. Still remains to unmask exceptions when storing blobs. We are probably ready to do that, but log noise caused by expected failures makes it hard to be certain. Soon... --- ietf/doc/storage_utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ietf/doc/storage_utils.py b/ietf/doc/storage_utils.py index 81588c83ec..ffdd4599be 100644 --- a/ietf/doc/storage_utils.py +++ b/ietf/doc/storage_utils.py @@ -178,8 +178,7 @@ def retrieve_bytes(kind: str, name: str) -> bytes: content = f.read() except Exception as err: log(f"Blobstore Error: Failed to read bytes from {kind}:{name}: {repr(err)}") - if settings.SERVER_MODE == "development": - raise + raise return content @@ -192,6 +191,5 @@ def retrieve_str(kind: str, name: str) -> str: content = content_bytes.decode("utf-8") except Exception as err: log(f"Blobstore Error: Failed to read string from {kind}:{name}: {repr(err)}") - if settings.SERVER_MODE == "development": - raise + raise return content