summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-10-02 11:05:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-12 14:38:55 +0100
commitdea679af1a068089080f517a9522ed39c65fcaef (patch)
tree425b97234fc1d5d4aa1c2f2ec8723704379c142b
parent6e0c0fd8353238bbb7223049b20b6c522498ff5c (diff)
downloadpoky-dea679af1a068089080f517a9522ed39c65fcaef.tar.gz
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>
-rw-r--r--bitbake/lib/toaster/orm/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 9a5942b75e..6c28726bd9 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -900,7 +900,7 @@ class LayerIndexLayerSource(LayerSource):
900 oe_core_l.save() 900 oe_core_l.save()
901 continue 901 continue
902 902
903 except DoesNotExist: 903 except Layer.DoesNotExist:
904 pass 904 pass
905 905
906 l, created = Layer.objects.get_or_create(layer_source = self, name = li['name']) 906 l, created = Layer.objects.get_or_create(layer_source = self, name = li['name'])