mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
bugfix for tika parser
This commit is contained in:
parent
ab489405a5
commit
70db00b829
@ -34,7 +34,10 @@ def handle_document(document_id):
|
|||||||
parser = parser_class(logging_group=uuid.uuid4())
|
parser = parser_class(logging_group=uuid.uuid4())
|
||||||
|
|
||||||
try:
|
try:
|
||||||
parser.parse(document.source_path, mime_type)
|
parser.parse(
|
||||||
|
document.source_path,
|
||||||
|
mime_type,
|
||||||
|
document.get_public_filename())
|
||||||
|
|
||||||
if parser.get_archive_path():
|
if parser.get_archive_path():
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user