Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

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

Merged
rossp merged 1 commit into
rossp:masterfrom
jamescooke:patch-1
May 6, 2012
Merged

rossp merged 1 commit into
rossp:masterfrom
jamescooke:patch-1

Conversation

@jamescooke

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants