git.samba.org
/
build-farm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a9d85
)
Sane error message on unknown revision.
author
Jelmer Vernooij
<jelmer@samba.org>
Wed, 8 Dec 2010 17:19:07 +0000
(18:19 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Wed, 8 Dec 2010 17:19:07 +0000
(18:19 +0100)
buildfarm/web/__init__.py
patch
|
blob
|
history
diff --git
a/buildfarm/web/__init__.py
b/buildfarm/web/__init__.py
index 49aa6e5579bd47005600f98e29231703d2c19898..e401a31a7fbe94d2d45ae26534522fcc016a1b80 100755
(executable)
--- a/
buildfarm/web/__init__.py
+++ b/
buildfarm/web/__init__.py
@@
-820,7
+820,11
@@
class HistoryPage(BuildFarmPage):
class DiffPage(HistoryPage):
def render(self, myself, tree, revision):
- t = self.buildfarm.trees[tree]
+ try:
+ t = self.buildfarm.trees[tree]
+ except KeyError:
+ yield "Unknown tree %s" % tree
+ return
branch = t.get_branch()
(entry, diff) = branch.diff(revision)
# get information about the current diff