summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 8a9a21eeee..198c6f5d22 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -782,8 +782,11 @@ class LayerIndexLayerSource(LayerSource):
782 print "EE: could not connect to %s, skipping update: %s\n%s" % (self.apiurl, e, traceback.format_exc(e)) 782 print "EE: could not connect to %s, skipping update: %s\n%s" % (self.apiurl, e, traceback.format_exc(e))
783 return 783 return
784 784
785 # update branches; only those that we already have names listed in the Releases table 785 # update branches; only those that we already have names listed in the
786 # Releases table
786 whitelist_branch_names = map(lambda x: x.branch_name, Release.objects.all()) 787 whitelist_branch_names = map(lambda x: x.branch_name, Release.objects.all())
788 if len(whitelist_branch_names) == 0:
789 raise Exception("Failed to make list of branches to fetch")
787 790
788 print "Fetching branches" 791 print "Fetching branches"
789 branches_info = _get_json_response(apilinks['branches'] 792 branches_info = _get_json_response(apilinks['branches']