Skip to content

Commit

Permalink
Minor bug fix, got_rev may not be an integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dunbar authored and nsylvain committed Aug 31, 2009
1 parent 65ee78a commit 702d705
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions buildbot/status/web/console.py
Expand Up @@ -295,12 +295,20 @@ def getBuildsForRevision(self, request, builder, builderName, lastRevision,
got_rev = -1
try:
got_rev = build.getProperty("got_revision")
try:
got_rev = int(got_rev)
except:
got_rev = -1
except KeyError:
pass

try:
if got_rev == -1:
got_rev = build.getProperty("revision")
try:
got_rev = int(got_rev)
except:
got_rev = -1
except:
pass

Expand Down

0 comments on commit 702d705

Please sign in to comment.