bin/pvl.hosts-reverse
changeset 487 920394061b6f
parent 475 a76571e27c6f
child 489 7f1bd12e0d54
--- a/bin/pvl.hosts-reverse	Thu Feb 26 15:23:00 2015 +0200
+++ b/bin/pvl.hosts-reverse	Thu Feb 26 15:25:09 2015 +0200
@@ -33,8 +33,12 @@
     # process
     prefix = pvl.dns.parse_prefix(options.reverse_zone)
 
-    for rr in pvl.hosts.zone.apply_hosts_reverse(options, hosts, prefix):
-        print unicode(rr)
+    try:
+        for rr in pvl.hosts.zone.apply_hosts_reverse(options, hosts, prefix):
+            print unicode(rr)
+    except pvl.hosts.HostError as error:
+        log.error("%s", error)
+        return 3
 
     return 0