mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-26 01:16:16 +00:00
Fix: only check workflow trigger source if not empty (#5701)
This commit is contained in:
@@ -258,7 +258,9 @@ def consumable_document_matches_workflow(
|
||||
reason = ""
|
||||
|
||||
# Document source vs trigger source
|
||||
if document.source not in [int(x) for x in list(trigger.sources)]:
|
||||
if len(trigger.sources) > 0 and document.source not in [
|
||||
int(x) for x in list(trigger.sources)
|
||||
]:
|
||||
reason = (
|
||||
f"Document source {document.source.name} not in"
|
||||
f" {[DocumentSource(int(x)).name for x in trigger.sources]}",
|
||||
|
Reference in New Issue
Block a user