Skip to content

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

Merged
merged 1 commit into from May 6, 2012

2 participants

@jamescooke

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 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
Something went wrong with that request. Please try again.