changeset 816:947eb92a7400

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)
author dfraser
date Thu, 16 Sep 2010 08:46:57 +0000
parents 77ff2e80b69d
children fc90ef7b2b86
files bitten/report/coverage.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
Copyright (C) 2012-2017 Edgewall Software