From 0792c96cd53bb310d1d3da18bc8d7ef5015280d0 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 25 May 2006 19:41:56 +0000 Subject: * Tighten up error handling git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1866 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-info | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index a7ff04a92..cac465490 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -2,7 +2,7 @@ '''This tool loads the Bcfg2 core into an interactive debugger''' __revision__ = '$Revision$' -import logging, lxml.etree, sys, time, Bcfg2.Logging, Bcfg2.Server.Core +import logging, lxml.etree, sys, time, Bcfg2.Logging, Bcfg2.Server.Core, Bcfg2.Server.Metadata def printTabular(rows): '''print data in tabular format''' @@ -27,7 +27,7 @@ def doShowentries(cmd, core): return try: meta = core.metadata.get_metadata(cmd[1]) - except: + except Bcfg2.Server.Metadata.MetadataConsistencyError: print "Unable to find metadata for host %s" % cmd[1] return structures = core.GetStructures(meta) -- cgit v1.2.3-1-g7c22