From bf9f82ceeeae4a08107efc339ead133c3071b2c6 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:21:44 -0800 Subject: [PATCH] Don't cover a few error cases and odd ball things --- src/documents/management/commands/document_consumer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/documents/management/commands/document_consumer.py b/src/documents/management/commands/document_consumer.py index 56e82b087..e7ebe461c 100644 --- a/src/documents/management/commands/document_consumer.py +++ b/src/documents/management/commands/document_consumer.py @@ -550,10 +550,10 @@ class Command(BaseCommand): elif is_testing: # In testing, use short timeout to check stop flag timeout_ms = testing_timeout_ms - else: + else: # pragma: nocover # No pending files, wait indefinitely timeout_ms = 0 - except KeyboardInterrupt: + except KeyboardInterrupt: # pragma: nocover logger.info("Received interrupt, stopping consumer") self.stop_flag.set()