From f1b27e9696c29988409d0181cad8ef496cbf3ab2 Mon Sep 17 00:00:00 2001 From: goodboy Date: Sat, 14 Feb 2026 16:55:27 -0500 Subject: [PATCH] Replace assert with warn for no-gaps in `.storage.cli` Change `assert aids` to a warning log when no history gaps are found during `ldshm` gap detection; it is the **ideal case** OBVI. This avoids crashing the CLI when gap detection finds no issues, which is actually good news! Bp (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- piker/storage/cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/piker/storage/cli.py b/piker/storage/cli.py index 90d5baed..c73d3b6d 100644 --- a/piker/storage/cli.py +++ b/piker/storage/cli.py @@ -447,7 +447,13 @@ def ldshm( ) # last chance manual overwrites in REPL # await tractor.pause() - assert aids + if not aids: + log.warning( + f'No gaps were found !?\n' + f'fqme: {fqme!r}\n' + f'timeframe: {period_s!r}\n' + f"WELL THAT'S GOOD NOOZ!\n" + ) tf2aids[period_s] = aids else: