# HG changeset patch # User osimons # Date 1247005561 0 # Node ID 0a221cb3a860560388cb10842600cc77570c639c # Parent dcee8ff20e82464424f01adca3a0d2a5423d570f 0.6dev: A wrongly typed `build:` wiki-link (like `build:Hello`) should not crash rendering of the whole page with `ValueError` and possible traceback. Now any such links are just ignored. diff --git a/bitten/main.py b/bitten/main.py --- a/bitten/main.py +++ b/bitten/main.py @@ -92,7 +92,11 @@ def get_link_resolvers(self): def _format_link(formatter, ns, name, label): - build = Build.fetch(self.env, int(name)) + try: + name = int(name) + except ValueError: + return label + build = Build.fetch(self.env, name) if build: config = BuildConfig.fetch(self.env, build.config) title = 'Build %d ([%s] of %s) by %s' % (build.id, build.rev,