Bodhi says: 'NoneType' object is unsubscriptable