Wrapping the call to the Menu model get() in a try catch. #5

Merged
merged 1 commit into from May 6, 2012

Conversation

Projects
None yet
2 participants
@jamescooke
Contributor

jamescooke commented May 5, 2012

This isn't a major issue - more of a gripe.

When setting up versions of sites that use a menu, any templates that attempt to load a menu will throw DoesNotExist exception. This just bypasses that exception by returning [] so that we can get a site up and running and leave the managers to create and build menus.

Hope that makes sense.

rossp added a commit that referenced this pull request May 6, 2012

Merge pull request #5 from jamescooke/patch-1
Wrapping the call to the Menu model get() in a try catch.

@rossp rossp merged commit 9f14d5b into rossp:master May 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment