changeset 704:9844af477a91

Fix for an issue reported in trac:ticket:8754 - the configuration used for a build may be deleted later, and is not guaranteed to exist.
author osimons
date Tue, 20 Oct 2009 00:09:07 +0000
parents 66894b0647f1
children d2e965fc31d4
files bitten/main.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/main.py
+++ b/bitten/main.py
@@ -127,7 +127,7 @@
                                  **kwargs):
         config_name, build_id = self._parse_resource(resource.id)
         config = BuildConfig.fetch(self.env, config_name)
-        config_label = config.label or config_name
+        config_label = config and config.label and config.label or config_name
         if context:
             if build_id:
                 return tag.a('Build %d ("%s")' % (build_id, config_label),
Copyright (C) 2012-2017 Edgewall Software