From fd1ed40d1fae03d9d208a8c30e1902ad3d104082 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Thu, 29 Oct 2009 01:36:43 -0400 Subject: [PATCH] tighten a bit of code svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2708 --- code/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/main.py b/code/main.py index c4eff65..f0d1f53 100755 --- a/code/main.py +++ b/code/main.py @@ -254,8 +254,7 @@ console will suffer artifacts. def __getattr__(self, name): try: - machine_id = int(name) - cherrypy.request.params['machine_id'] = machine_id + cherrypy.request.params['machine_id'] = int(name) return self except ValueError: return None -- 1.7.9.5