mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #1154] [MERGED] fix: make oneshot command return successful exit code #4345
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#4345
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1154
Author: @sissbruecker
Created: 5/29/2023
Status: ✅ Merged
Merged: 5/31/2023
Merged by: @pirate
Base:
dev← Head:fix/oneshot_exit_code📝 Commits (2)
40c1225fix: make oneshot command return successful exist code7bf4f40just use out_dir📊 Changes
2 files changed (+34 additions, -2 deletions)
View changed files
📝
archivebox/extractors/__init__.py(+1 -1)📝
tests/test_oneshot.py(+33 -1)📄 Description
Summary
While the oneshot command correctly creates output files, the command itself returns an exit code, and logs the following error:
It fails in the
log_link_archiving_finishedfunction, where it tries to log information about the link's directory within the archive, which doesn't exist because the oneshot command writes its output into a custom output dir.This change updates the call to that function to alternatively pass the custom output dir if it has been specified.
I have seen an issue that mentions that the oneshot command is considered deprecated, still I would find it useful and this fix seems to have low impact.
Related issues
No related issue.
Changes these areas
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.