A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Ignore errors when trying to copy the original file's stats
Trenton H1c66daf12b2f
diff --git a/src/documents/consumer.py b/src/documents/consumer.pyindex f2da2ff42..fde8e2d4c 100644--- a/src/documents/consumer.py+++ b/src/documents/consumer.py@@ -582,7 +582,12 @@ class Consumer(LoggingMixin):def _write(self, storage_type, source, target):with open(source, "rb") as read_file, open(target, "wb") as write_file:write_file.write(read_file.read())- shutil.copystat(source, target)++ # Attempt to copy file's original stats, but it's ok if we can't+ try:+ shutil.copystat(source, target)+ except Exception: # pragma: no cover+ passdef _log_script_outputs(self, completed_process: CompletedProcess):"""