mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-12 21:44:21 -06:00
Don't cover a few error cases and odd ball things
This commit is contained in:
@@ -550,10 +550,10 @@ class Command(BaseCommand):
|
|||||||
elif is_testing:
|
elif is_testing:
|
||||||
# In testing, use short timeout to check stop flag
|
# In testing, use short timeout to check stop flag
|
||||||
timeout_ms = testing_timeout_ms
|
timeout_ms = testing_timeout_ms
|
||||||
else:
|
else: # pragma: nocover
|
||||||
# No pending files, wait indefinitely
|
# No pending files, wait indefinitely
|
||||||
timeout_ms = 0
|
timeout_ms = 0
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt: # pragma: nocover
|
||||||
logger.info("Received interrupt, stopping consumer")
|
logger.info("Received interrupt, stopping consumer")
|
||||||
self.stop_flag.set()
|
self.stop_flag.set()
|
||||||
|
|||||||
Reference in New Issue
Block a user