Custom script "exited with code: 1" error (postsonarr.py script from sickbeard_mp4_automator on macOS Mojave)

I’ve noticed that Sonarr v2 has a two separate entry areas, one for “Path” and one for “Arguments”, in the custom script area, whereas Sonarr v3 only has one. Could that be why the script is failing because Sonarr v3 isn’t getting right right path?