Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from May 6, 2012

Conversation

@jamescooke
Copy link
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
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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.