From 6e669f094827ff74617f9277f93a959bae4cb794 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 21032c8b..1180d44f 100644 --- a/piker/storage/cli.py +++ b/piker/storage/cli.py @@ -452,7 +452,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: