cquest / tootbot

python bot to clone tweets to a mastodon account
GNU Affero General Public License v3.0
101 stars 35 forks source link

Add error handling to subprocess.run call #17

Open loxK opened 1 year ago

loxK commented 1 year ago

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 commented 1 year ago

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