diff --git a/solstone/think/offload.py b/solstone/think/offload.py index 501c1a3b3..f0408cd3f 100644 --- a/solstone/think/offload.py +++ b/solstone/think/offload.py @@ -265,8 +265,6 @@ def _offload_segment( counters: _Counters, ) -> OffloadResult | None: prepared = _prepare_raw_files(raw_files) - if not prepared: - return None archive = run_archive_backup([file.path for file in prepared]) stall_reason = _archive_stall_reason(archive) diff --git a/tests/test_offload.py b/tests/test_offload.py index f8999e08e..11f9c3eea 100644 --- a/tests/test_offload.py +++ b/tests/test_offload.py @@ -774,12 +774,15 @@ def test_ledger_event_with_media_absent_is_skipped_without_reading_summary( ) archive = Mock() monkeypatch.setattr(offload, "run_archive_backup", archive) - monkeypatch.setattr( - offload, - "summarize_segment", - Mock(side_effect=AssertionError("pass must not read ledger summaries")), - raising=False, - ) + summary_symbols = {"summarize_segment", "summarize_day", "summarize_journal"} + assert summary_symbols.isdisjoint(vars(offload)) + for name in summary_symbols: + monkeypatch.setattr( + offload_ledger, + name, + Mock(side_effect=AssertionError("pass must not read ledger summaries")), + raising=True, + ) result = offload.run_offload()