Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

on_modified not needed for the consumer.

Jonas Winkler09651e001197
diff --git a/src/documents/management/commands/document_consumer.py b/src/documents/management/commands/document_consumer.py
index a90fd53ed..ea6e033ba 100644
--- a/src/documents/management/commands/document_consumer.py
+++ b/src/documents/management/commands/document_consumer.py
@@ -25,14 +25,12 @@ class Handler(FileSystemEventHandler):
try:
self.consumer.try_consume_file(file)
except Exception as e:
+ # Catch all so that the consumer won't crash.
logging.getLogger(__name__).error("Error while consuming document: {}".format(e))
def on_created(self, event):
self._consume(event.src_path)
- def on_modified(self, event):
- self._consume(event.src_path)
-
def on_moved(self, event):
self._consume(event.src_path)