Commits

Andreas Madsack committed 1924c5a Draft

hotfix for problem with empty path

Comments (0)

Files changed (1)

lfc/utils/__init__.py

         raise Http404
 
     for path in paths[1:]:
+        if not path:
+            continue
         try:
             obj = obj.children.get(slug=path, language__in=("0", obj.language)).get_content_object()
         except lfc.models.BaseContent.DoesNotExist: