From 0dc4a628ae3a2efe3edf5351fba975bf289e7558 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Mon, 16 Mar 2015 12:19:56 +0000 Subject: bitbake: toaster: do not throw exception on misconfigured data We do not want to throw an exception while handling exceptions that may print information, so replace the exception throwing with returning data. (Bitbake rev: 624e67b0d142e5dac946ebb63bcfad0625b88799) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index eea98b5e71..625eb1ee85 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -1080,7 +1080,7 @@ class Layer_Version(models.Model): return self.branch if self.up_branch is not None: return self.up_branch.name - raise Exception("Cannot determine the vcs_reference for layer version %s" % vars(self)) + return ("Cannot determine the vcs_reference for layer version %s" % vars(self)) def __unicode__(self): return "%d %s (VCS %s, Project %s)" % (self.pk, str(self.layer), self.get_vcs_reference(), self.build.project if self.build is not None else "No project") -- cgit v1.2.3-54-g00ecf