From 15cf517c200206739444b048e95b9429fa6684a2 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 17 Jul 2009 16:44:10 +0000 Subject: [PATCH] fail silently --- sfa/plc/slices.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 9a5a6536..cbe19353 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -3,6 +3,8 @@ import datetime import time +import traceback +import sys from sfa.util.misc import * from sfa.util.rspec import * @@ -13,7 +15,7 @@ from sfa.util.policy import Policy from sfa.util.debug import log from sfa.server.aggregate import Aggregates from sfa.server.registry import Registries -import traceback + class Slices(SimpleStorage): def __init__(self, api, ttl = .5): @@ -106,7 +108,13 @@ class Slices(SimpleStorage): credential = self.api.getCredential() aggregates = Aggregates(self.api) for aggregate in aggregates: - aggregates[aggregate].delete_slice(credential, hrn) + try: + aggregates[aggregate].delete_slice(credential, hrn) + except: + print >> log, "Error calling list nodes at aggregate %s" % aggregate + traceback.print_exc(log) + exc_type, exc_value, exc_traceback = sys.exc_info() + print exc_type, exc_value, exc_traceback def create_slice(self, hrn, rspec): -- 2.43.0