--- a/pvl/hosts/host.py Thu Feb 26 15:09:16 2015 +0200
+++ b/pvl/hosts/host.py Thu Feb 26 15:22:30 2015 +0200
@@ -4,12 +4,20 @@
import pvl.dns
class HostError (Exception):
- def __init__(self, name, error):
- self.name = name
+ """
+ An error associated with some specific Host.
+ """
+
+ def __init__(self, host, error):
+ """
+ host : Host which caused error
+ error : Exception or str message
+ """
+ self.host = host
self.error = error
def __str__ (self):
- return "{self.name}: {self.error}".format(self=self)
+ return "{self.host}: {self.error}".format(self=self)
def parse_bool(value):
"""