# HG changeset patch # User dfraser # Date 1284626817 0 # Node ID 947eb92a740056204620114d647d80028a848efd # Parent 77ff2e80b69d5bb392986ec0df718991e4cf4ebd Don't convert to `int` here - this won't work for mercurial etc, and isn't necessary. See #577 (also remove the handling of the exception that can't occur as a result) diff --git a/bitten/report/coverage.py b/bitten/report/coverage.py --- a/bitten/report/coverage.py +++ b/bitten/report/coverage.py @@ -210,8 +210,8 @@ # attempt to use the version passed in with the request, # otherwise fall back to the latest version of this file. try: - version = int(context.req.args['rev']) - except (KeyError, TypeError): + version = context.req.args['rev'] + except KeyError: version = resource.version builds = Build.select(self.env, rev=version)