sr_pops has put certain subreddits into the top subreddit list multiple times. This causes there to be multiple buttons in the srbar. The sort logic in NavMenu.find_selected short circuited when the lists were of length 1, but now that they aren't it's dying rightfully on this attribute not existing on SubredditButton. This is a temporary patch to help until the sr_pops issue is fixed.
This is the primary codebase that powers reddit.com.
For notices about major changes and general discussion of reddit development, subscribe to the /r/redditdev and /r/changelog subreddits.
You can also chat with us via IRC in #reddit-dev on FreeNode.
Quickstart
To set up your own instance of reddit to develop with, we have a handy install script for Ubuntu that will automatically install and configure most of the stack.
Alternatively, refer to our Install Guide for instructions on setting up reddit from scratch. Many frequently asked questions regarding local reddit installs are covered in our FAQ.
APIs
To learn more about reddit's API, check out our automated API documentation and the API wiki page. Please use a unique User-Agent string and take care to abide by our API rules.
Happy hacking!