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()