Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error handling to subprocess.run call #17

Open
loxK opened this issue Nov 22, 2022 · 1 comment
Open

Add error handling to subprocess.run call #17

loxK opened this issue Nov 22, 2022 · 1 comment

Comments

@loxK
Copy link

loxK commented Nov 22, 2022

I had a hard time debugging the program not working in Cron. It was reporting zero items for any feed/twitter account. It was because the ~/.config/bin isn't in PATH when running from Cron, but no error was telling the fact that it couldn't find twint

Please handle errors and throw them when subprocess.run has an error.

@produnis
Copy link

In my case, twint is in .local/bin (Archlinux), and adding this to my PATH, it works with cron again. thanx again, loxK!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants