mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Replace usages of os.rename with shutil.move to properly handle cases where the source and dest arent't on the same filesystem
This commit is contained in:

committed by
Trenton H

parent
02a7112b1a
commit
e34b8c4b1f
@@ -10,8 +10,8 @@ from documents.models import Document
|
||||
from documents.parsers import get_parser_class_for_mime_type
|
||||
|
||||
|
||||
def _process_document(doc_in):
|
||||
document: Document = Document.objects.get(id=doc_in)
|
||||
def _process_document(doc_id):
|
||||
document: Document = Document.objects.get(id=doc_id)
|
||||
parser_class = get_parser_class_for_mime_type(document.mime_type)
|
||||
|
||||
if parser_class:
|
||||
|
Reference in New Issue
Block a user