bitbake: toaster: fix NameError

Fixed exception: NameError: global name 'DoesNotExist' is not defined

(Bitbake rev: eee5311b867d3c8c33e06d04e103bfd3647146f4)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh 2015-10-02 11:05:14 -07:00 committed by Richard Purdie
parent 6e0c0fd835
commit dea679af1a
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ class LayerIndexLayerSource(LayerSource):
oe_core_l.save()
continue
except DoesNotExist:
except Layer.DoesNotExist:
pass
l, created = Layer.objects.get_or_create(layer_source = self, name = li['name'])