Commits

David Jean Louis committed eebcde1

fixed issue #12: bookmarks blow up if no cookie

  • Participants
  • Parent commits efc413f

Comments (0)

Files changed (1)

File admin_tools/menu/utils.py

     """
     Returns the bookmarked items or raise an exception.
     """
-    json_str = urllib.unquote(request.COOKIES.get('menu.bookmarks'))
-    if json_str is not None:
+    json_str = urllib.unquote(request.COOKIES.get('menu.bookmarks', ''))
+    if json_str:
         return simplejson.loads(json_str)
     return []