Skip to content

Commit

Permalink
Fix for an issue reported in trac:ticket:8754 - the configuration use…
Browse files Browse the repository at this point in the history
…d for a build may be deleted later, and is not guaranteed to exist.

git-svn-id: http://svn.edgewall.org/repos/bitten/trunk@782 2d6df8db-84f7-0310-ba0f-a4c632ebc3b5
  • Loading branch information
osimons committed Oct 20, 2009
1 parent 2a003fb commit 55af154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitten/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_resource_description(self, resource, format=None, context=None,
**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),
Expand Down

0 comments on commit 55af154

Please sign in to comment.