handle missing lanes arg when creating a board

Change-Id: Ie523c038ff9b8e5ccb439133396cada836877549
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-02-15 19:18:56 -05:00
parent 923495c192
commit e851899497
1 changed files with 1 additions and 1 deletions

View File

@ -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: