From e8518994971181125e33e25a435cfb80d652146a Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 15 Feb 2018 19:18:56 -0500 Subject: [PATCH] handle missing lanes arg when creating a board Change-Id: Ie523c038ff9b8e5ccb439133396cada836877549 Signed-off-by: Doug Hellmann --- storyboard/api/v1/boards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storyboard/api/v1/boards.py b/storyboard/api/v1/boards.py index 58241986..b45dec7a 100644 --- a/storyboard/api/v1/boards.py +++ b/storyboard/api/v1/boards.py @@ -325,7 +325,7 @@ class BoardsController(rest.RestController): if board.creator_id and board.creator_id != user_id: abort(400, _("You can't select the creator of a board.")) board_dict.update({"creator_id": user_id}) - lanes = board_dict.pop('lanes') + lanes = board_dict.pop('lanes') or [] owners = board_dict.pop('owners') users = board_dict.pop('users') if not owners: