James CookeJames Cooke

Fixing exception in django-menu

django-menu is a nice simple library for building very simple menus. However, when a site is loaded for the first time, the menu structure was not configured and so it was throwing a DoesNotExist Exception.

This tiny pull request simply wrapped the call to the menu in a try/except so that new sites using django-menu won’t fall over on first load.