Commits

Matthew Schinckel committed 14dd5a4

More robust getting list of tests.

Comments (0)

Files changed (1)

menus/templatetags/menu_item.py

     """
     return [
         x for x in get_callable_cells(function)
-        if x.func_code.co_varnames[0] in ["user", "u"]
+        if getattr(x, 'func_code', None) and x.func_code.co_varnames[0] in ["user", "u"]
     ]
 
 class MenuItem(template.Node):