Skip to content

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

Celery JSON serializable object for `override_tag_ids`

Michael Shamoon91a2dedfecc3
diff --git a/src/documents/management/commands/document_consumer.py b/src/documents/management/commands/document_consumer.py
index 3dce17263..a405f590c 100644
--- a/src/documents/management/commands/document_consumer.py
+++ b/src/documents/management/commands/document_consumer.py
@@ -94,7 +94,7 @@ def _consume(filepath):
logger.info(f"Adding {filepath} to the task queue.")
consume_file.delay(
filepath,
- override_tag_ids=tag_ids if tag_ids else None,
+ override_tag_ids=list(tag_ids) if tag_ids else None,
)
except Exception:
# Catch all so that the consumer won't crash.