if fork = failed, this returns fork = {'process': None, 'dirName': None}.
So when we try to fork[0], fork[1] (last line) this fails.

I believe this still needs to use iteritems

            fork = fork if fork in SICKBEARD_FAILED or fork in SICKBEARD_TORRENT else fork_default
            fork = [f for f in forks.iteritems() if f[1]['name'] == fork][0]