summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Admin/Minestruct.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Admin/Minestruct.py b/src/lib/Server/Admin/Minestruct.py
index 83eaa2c0a..0bf7a5797 100644
--- a/src/lib/Server/Admin/Minestruct.py
+++ b/src/lib/Server/Admin/Minestruct.py
@@ -35,7 +35,11 @@ class Minestruct(Bcfg2.Server.Admin.StructureMode):
elif opt == '-g':
groups = optarg.split(':')
- extra = self.statistics.GetExtra(client)
+ try:
+ extra = self.statistics.GetExtra(client)
+ except:
+ self.log.error("Failed to find extra entry info for client %s" % client)
+ raise SystemExit(1)
root = lxml.etree.Element("Base")
self.log.info("Found %d extra entries" % (len(extra)))
add_point = root