From 1d584a0d8a8a9f657a99c91275d23864dd7fd9e4 Mon Sep 17 00:00:00 2001 From: Jeffrey Forman Date: Thu, 8 Nov 2012 22:07:38 -0500 Subject: [PATCH] make the error on retrieving a zone message more correct --- binder/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binder/models.py b/binder/models.py index 800f789..6f10cd5 100644 --- a/binder/models.py +++ b/binder/models.py @@ -44,8 +44,8 @@ class BindServer(models.Model): each RR record and its attributes.""" try: zone = dns.zone.from_xfr(dns.query.xfr(self.hostname, zone)) - except dns.exception.FormError, err: - raise Exception("The zone requested %s is not found on %s." % (zone, self.hostname)) + except dns.exception.FormError: + raise Exception("There was an error attempting to retrieve zone %s on %s." % (zone, self.hostname)) names = zone.nodes.keys() names.sort()