style: fix linting issues in retry and metadata extraction code

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-13 21:07:23 +00:00
parent 42d35c7c6f
commit bcf5f652fc
2 changed files with 12 additions and 13 deletions
+7 -8
View File
@@ -536,14 +536,13 @@ def _retry_pipeline_step(file_record: FileRecord, step_name: str, db: Session) -
elif file_record.processed_file_path and os.path.exists(file_record.processed_file_path): elif file_record.processed_file_path and os.path.exists(file_record.processed_file_path):
# File has been processed and moved to processed directory # File has been processed and moved to processed directory
file_path = file_record.processed_file_path file_path = file_record.processed_file_path
else: # Try fallback path in workdir/tmp
# Try fallback path in workdir/tmp elif file_record.local_filename:
if file_record.local_filename: workdir = settings.workdir
workdir = settings.workdir tmp_dir = os.path.join(workdir, "tmp")
tmp_dir = os.path.join(workdir, "tmp") fallback_path = os.path.join(tmp_dir, os.path.basename(file_record.local_filename))
fallback_path = os.path.join(tmp_dir, os.path.basename(file_record.local_filename)) if os.path.exists(fallback_path):
if os.path.exists(fallback_path): file_path = fallback_path
file_path = fallback_path
if not file_path: if not file_path:
raise HTTPException( raise HTTPException(