]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: fix unhandled exception
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 27 Jul 2016 12:15:02 +0000 (15:15 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 23:08:18 +0000 (00:08 +0100)
commit01891c13ae8dcba64e5cf79956f1b64c2afdaae3
tree2994214402c9184baa1cd91ec383929e8e367532
parent0990b4c73f194ec0be1762e4e48b1a525d8349fb
toaster: fix unhandled exception

manage.py lsupdates throws DataError exception if the recipe can't be
saved to the MySQL database:
    django.db.utils.DataError: (1406, "Data too long for column 'license' at row 1"

Adding DataError exception to the list of exceptions should make
lsupdates to print a warning message and skip the recipe.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
lib/toaster/orm/models.py