mirror of
https://github.com/FujiwaraChoki/MoneyPrinterV2.git
synced 2026-04-26 06:35:51 +03:00
[PR #126] [MERGED] Fix subprocess.run() crash in CRON job setup #122
Labels
No labels
bug
enhancement
good first issue
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/MoneyPrinterV2#122
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/FujiwaraChoki/MoneyPrinterV2/pull/126
Author: @FujiwaraChoki
Created: 2/26/2026
Status: ✅ Merged
Merged: 2/26/2026
Merged by: @FujiwaraChoki
Base:
main← Head:fix/cron-job-subprocess-command📝 Commits (1)
e8bd963Fix subprocess.run() crash in CRON job setup📊 Changes
1 file changed (+2 additions, -22 deletions)
View changed files
📝
src/main.py(+2 -22)📄 Description
Summary
subprocess.run()in both YouTube and Twitter CRON job functions was called with a string command (e.g."python /path/cron.py youtube uuid"), but withoutshell=True. This causes Python to treat the entire string as a single executable name, resulting in aFileNotFoundErrorwhenever a user tries to set up scheduled uploads or posts.["python", path, "youtube", id]), whichsubprocess.run()handles correctly and is also safer against shell injection.Test plan
cron.pycorrectly when triggered🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.