[prev in list] [next in list] [prev in thread] [next in thread]
List: luci-commits
Subject: [Luci-commits] [luci] luci: Fix uncaught exception
From: rmccabe () fedoraproject ! org (Ryan McCabe)
Date: 2012-12-04 14:48:30
Message-ID: 20121204144830.DFFE8A0E0B () fedorahosted ! org
[Download RAW message or body]
commit 50c49338b7b0d649383872b5f01ae3fde831bbfa
Author: Ryan McCabe <rmccabe at redhat.com>
Date: Tue Dec 4 09:47:34 2012 -0500
luci: Fix uncaught exception
Catch all exceptions when the cluster model cannot be built.
Signed-off-by: Ryan McCabe <rmccabe at redhat.com>
luci/controllers/cluster.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/luci/controllers/cluster.py b/luci/controllers/cluster.py
index 25d8088..3035306 100644
--- a/luci/controllers/cluster.py
+++ b/luci/controllers/cluster.py
@@ -515,7 +515,7 @@ class IndividualClusterController(BaseController):
try:
self.get_model()
self.model.getResourceByName(resourcename)
- except KeyError, e:
+ except Exception, e:
resourcename=None
return dict(page='nodes', name=resourcename, base_url=base_url, resources_cmd=resources_cmd)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic