cquest/tootbot

Add error handling to subprocess.run call

Opened this issue · 1 comments

loxK commented

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.

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